VirtualBox
Show
Ignore:
Timestamp:
04/19/08 23:02:49 (9 months ago)
Author:
vboxsync
Message:

OS/2: Fixed builds.

Files:

Legend:

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

    r8155 r8194  
    3232#define ___VBox_com_defs_h 
    3333 
    34 /* 
    35  * Include iprt/types.h now to make sure iprt get to stdint.h first, 
    36  * otherwise a system/xpcom header might beat us and we'll be without 
    37  * the macros that are optional in C++. 
    38  */ 
     34#if defined (RT_OS_OS2) 
     35 
     36/* Make sure OS/2 Toolkit headers are pulled in to have BOOL/ULONG/etc. typedefs 
     37 * already defined in order to be able to redefine them using #define. It's 
     38 * also important to do it before iprt/cdefs.h, otherwise we'll lose RT_MAX in 
     39 * all code that uses COM Glue. */ 
     40#define INCL_BASE 
     41#define INCL_PM 
     42#include <os2.h> 
     43 
     44/* OS/2 Toolkit defines TRUE and FALSE */ 
     45#undef FALSE 
     46#undef TRUE 
     47 
     48#endif /* defined (RT_OS_OS2) */ 
     49 
     50/* Include iprt/types.h (which also includes iprt/types.h) now to make sure iprt 
     51 * get to stdint.h first, otherwise a system/xpcom header might beat us and 
     52 * we'll be without the macros that are optional in C++. */ 
    3953#include <iprt/types.h> 
    4054 
     
    4862#include <objbase.h> 
    4963#ifndef VBOX_COM_NO_ATL 
    50 #include <atlbase.h> 
     64# include <atlbase.h> 
    5165#endif 
    5266 
     
    163177// XPCOM 
    164178///////////////////////////////////////////////////////////////////////////// 
    165  
    166 #if defined (RT_OS_OS2) 
    167  
    168 /* Make sure OS/2 Toolkit headers are pulled in to have 
    169  * BOOL/ULONG/etc. typedefs already defined in order to be able to redefine 
    170  * them using #define. */ 
    171 #define INCL_BASE 
    172 #define INCL_PM 
    173 #include <os2.h> 
    174  
    175 /* OS/2 Toolkit defines TRUE and FALSE */ 
    176 #undef FALSE 
    177 #undef TRUE 
    178  
    179 #endif /* defined (RT_OS_OS2) */ 
    180179 
    181180#if defined (RT_OS_DARWIN) 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy