Define TRUE only if it hasn't been defined before
authorEric Kohl <eric.kohl@reactos.org>
Sun, 21 Sep 2008 19:57:05 +0000 (19:57 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 21 Sep 2008 19:57:05 +0000 (19:57 +0000)
svn path=/trunk/; revision=36390

reactos/tools/widl/widl_ros.diff
reactos/tools/widl/widltypes.h

index 84aff98..fa681a0 100644 (file)
@@ -110,6 +110,16 @@ Index: widltypes.h
  #include <stdarg.h>
  #include "guiddef.h"
  #include "wine/rpcfc.h"
  #include <stdarg.h>
  #include "guiddef.h"
  #include "wine/rpcfc.h"
+@@ -38,7 +38,9 @@
+ typedef GUID UUID;
+ #endif
++#ifndef TRUE
+ #define TRUE 1
++#endif
+ #define FALSE 0
+ typedef struct _attr_t attr_t;
 Index: write_msft.c
 ===================================================================
 --- write_msft.c       (revision 32187)
 Index: write_msft.c
 ===================================================================
 --- write_msft.c       (revision 32187)
index af602f4..6be4d86 100644 (file)
@@ -38,7 +38,9 @@
 typedef GUID UUID;
 #endif
 
 typedef GUID UUID;
 #endif
 
+#ifndef TRUE
 #define TRUE 1
 #define TRUE 1
+#endif
 #define FALSE 0
 
 typedef struct _attr_t attr_t;
 #define FALSE 0
 
 typedef struct _attr_t attr_t;