[ros-diffs] [cfinck] 32189: Define O_BINARY to 0 in include/wine/port.h if it's not defined. Wine's version of this file already contains this #define. This way we can remove one more difference in our widl version compared to the Wine one.

cfinck at svn.reactos.org cfinck at svn.reactos.org
Thu Feb 7 18:27:26 CET 2008


Author: cfinck
Date: Thu Feb  7 20:27:25 2008
New Revision: 32189

URL: http://svn.reactos.org/svn/reactos?rev=32189&view=rev
Log:
Define O_BINARY to 0 in include/wine/port.h if it's not defined. Wine's version of this file already contains this #define.
This way we can remove one more difference in our widl version compared to the Wine one.

Modified:
    trunk/reactos/include/reactos/wine/port.h
    trunk/reactos/tools/widl/widl_ros.diff
    trunk/reactos/tools/widl/widltypes.h

Modified: trunk/reactos/include/reactos/wine/port.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/wine/port.h?rev=32189&r1=32188&r2=32189&view=diff
==============================================================================
--- trunk/reactos/include/reactos/wine/port.h (original)
+++ trunk/reactos/include/reactos/wine/port.h Thu Feb  7 20:27:25 2008
@@ -123,6 +123,9 @@
 # define O_LARGEFILE 0
 #endif
 
+#ifndef O_BINARY
+# define O_BINARY 0
+#endif
 
 /****************************************************************
  * Constants

Modified: trunk/reactos/tools/widl/widl_ros.diff
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/widl_ros.diff?rev=32189&r1=32188&r2=32189&view=diff
==============================================================================
--- trunk/reactos/tools/widl/widl_ros.diff (original)
+++ trunk/reactos/tools/widl/widl_ros.diff Thu Feb  7 20:27:25 2008
@@ -1,6 +1,6 @@
 Index: hash.c
 ===================================================================
---- hash.c	(revision 31863)
+--- hash.c	(revision 32187)
 +++ hash.c	(working copy)
 @@ -21,9 +21,7 @@
  #include <stdio.h>
@@ -36,7 +36,7 @@
      break;
 Index: server.c
 ===================================================================
---- server.c	(revision 31863)
+--- server.c	(revision 32187)
 +++ server.c	(working copy)
 @@ -390,6 +390,7 @@
      print_server("/*** Autogenerated by WIDL %s from %s - Do not edit ***/\n", PACKAGE_VERSION, input_name);
@@ -48,7 +48,7 @@
  }
 Index: typelib.c
 ===================================================================
---- typelib.c	(revision 31863)
+--- typelib.c	(revision 32187)
 +++ typelib.c	(working copy)
 @@ -35,8 +35,7 @@
  #define NONAMELESSUNION
@@ -62,7 +62,7 @@
  #include "utils.h"
 Index: utils.c
 ===================================================================
---- utils.c	(revision 31863)
+--- utils.c	(revision 32187)
 +++ utils.c	(working copy)
 @@ -136,6 +136,9 @@
  		name = "widl.tab";
@@ -76,7 +76,7 @@
  
 Index: widl.c
 ===================================================================
---- widl.c	(revision 31863)
+--- widl.c	(revision 32187)
 +++ widl.c	(working copy)
 @@ -166,6 +166,9 @@
    int i;
@@ -90,7 +90,7 @@
    token = xstrdup(name);
 Index: widltypes.h
 ===================================================================
---- widltypes.h	(revision 31863)
+--- widltypes.h	(revision 32187)
 +++ widltypes.h	(working copy)
 @@ -21,6 +21,13 @@
  #ifndef __WIDL_WIDLTYPES_H
@@ -106,21 +106,9 @@
  #include <stdarg.h>
  #include "guiddef.h"
  #include "wine/rpcfc.h"
-@@ -34,6 +41,11 @@
- #define TRUE 1
- #define FALSE 0
- 
-+// All hosts, which don't define O_BINARY, don't need it :-)
-+#ifndef O_BINARY
-+#define O_BINARY 0
-+#endif
-+
- typedef struct _attr_t attr_t;
- typedef struct _expr_t expr_t;
- typedef struct _type_t type_t;
 Index: write_msft.c
 ===================================================================
---- write_msft.c	(revision 31863)
+--- write_msft.c	(revision 32187)
 +++ write_msft.c	(working copy)
 @@ -40,10 +40,8 @@
  #define NONAMELESSUNION

Modified: trunk/reactos/tools/widl/widltypes.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/widltypes.h?rev=32189&r1=32188&r2=32189&view=diff
==============================================================================
--- trunk/reactos/tools/widl/widltypes.h (original)
+++ trunk/reactos/tools/widl/widltypes.h Thu Feb  7 20:27:25 2008
@@ -40,11 +40,6 @@
 
 #define TRUE 1
 #define FALSE 0
-
-// All hosts, which don't define O_BINARY, don't need it :-)
-#ifndef O_BINARY
-#define O_BINARY 0
-#endif
 
 typedef struct _attr_t attr_t;
 typedef struct _expr_t expr_t;




More information about the Ros-diffs mailing list