VirtualBox

Changeset 33385 in vbox for trunk/include/VBox/com/defs.h


Ignore:
Timestamp:
Oct 24, 2010 3:11:00 PM (14 years ago)
Author:
vboxsync
Message:

VBox/com/defs.h: Some OS/2 hack updates from a while back...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/defs.h

    r31018 r33385  
    3838#if defined (RT_OS_OS2)
    3939
    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
    4445
    4546/* 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>
    5251
    5352/* 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
    5661
    5762#endif /* defined (RT_OS_OS2) */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette