Changeset 33385 in vbox for trunk/include/VBox/com/defs.h
- Timestamp:
- Oct 24, 2010 3:11:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/defs.h
r31018 r33385 38 38 #if defined (RT_OS_OS2) 39 39 40 #if defined(RT_MAX) && RT_MAX != 22 41 # error RT_MAX already defined by <iprt/cdefs.h>! Make sure <VBox/com/defs.h> \ 42 is included before it. 43 #endif 40 # if defined(RT_MAX) && RT_MAX != 22 41 # undef RT_MAX 42 # define REDEFINE_RT_MAX 43 # endif 44 # undef RT_MAX 44 45 45 46 /* Make sure OS/2 Toolkit headers are pulled in to have BOOL/ULONG/etc. typedefs 46 * already defined in order to be able to redefine them using #define. It's 47 * also important to do it before iprt/cdefs.h, otherwise we'll lose RT_MAX in 48 * all code that uses COM Glue. */ 49 #define INCL_BASE 50 #define INCL_PM 51 #include <os2.h> 47 * already defined in order to be able to redefine them using #define. */ 48 # define INCL_BASE 49 # define INCL_PM 50 # include <os2.h> 52 51 53 52 /* OS/2 Toolkit defines TRUE and FALSE */ 54 #undef FALSE 55 #undef TRUE 53 # undef FALSE 54 # undef TRUE 55 56 /* */ 57 # undef RT_MAX 58 # ifdef REDEFINE_RT_MAX 59 # define RT_MAX(Value1, Value2) ( (Value1) >= (Value2) ? (Value1) : (Value2) ) 60 # endif 56 61 57 62 #endif /* defined (RT_OS_OS2) */
Note:
See TracChangeset
for help on using the changeset viewer.