VirtualBox

Changeset 9332 in vbox


Ignore:
Timestamp:
Jun 2, 2008 11:10:25 PM (16 years ago)
Author:
vboxsync
Message:

Must make sure UINT32_C() and friends are defined when stdint.h might be included by someone other than iprt/types.h.

Location:
trunk
Files:
7 edited

Legend:

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

    r8155 r9332  
    3333#ifndef ___VBox_com_Guid_h
    3434#define ___VBox_com_Guid_h
     35
     36/* Make sure all the stdint.h macros are included - must come first! */
     37#ifndef __STDC_LIMIT_MACROS
     38# define __STDC_LIMIT_MACROS
     39#endif
     40#ifndef __STDC_CONSTANT_MACROS
     41# define __STDC_CONSTANT_MACROS
     42#endif
    3543
    3644#if defined (VBOX_WITH_XPCOM)
  • trunk/include/VBox/com/defs.h

    r8266 r9332  
    3131#ifndef ___VBox_com_defs_h
    3232#define ___VBox_com_defs_h
     33
     34/* Make sure all the stdint.h macros are included - must come first! */
     35#ifndef __STDC_LIMIT_MACROS
     36# define __STDC_LIMIT_MACROS
     37#endif
     38#ifndef __STDC_CONSTANT_MACROS
     39# define __STDC_CONSTANT_MACROS
     40#endif
    3341
    3442#if defined (RT_OS_OS2)
     
    179187
    180188#if defined (RT_OS_DARWIN) || (defined (QT_VERSION) && (QT_VERSION >= 0x040000))
    181   /* CFBase.h defines these & 
     189  /* CFBase.h defines these &
    182190   * qglobal.h from Qt4 defines these */
    183191# undef FALSE
  • trunk/include/VBox/com/ptr.h

    r8155 r9332  
    3232#define ___VBox_com_ptr_h
    3333
     34/* Make sure all the stdint.h macros are included - must come first! */
     35#ifndef __STDC_LIMIT_MACROS
     36# define __STDC_LIMIT_MACROS
     37#endif
     38#ifndef __STDC_CONSTANT_MACROS
     39# define __STDC_CONSTANT_MACROS
     40#endif
     41
    3442#if !defined (VBOX_WITH_XPCOM)
    3543
     
    3846#ifndef _ATL_IIDOF
    3947# define _ATL_IIDOF(c) __uuidof(c)
    40 #endif 
     48#endif
    4149
    4250#else /* !defined (VBOX_WITH_XPCOM) */
     
    8593/**
    8694 *  Returns @c true if two interface pointers are equal.
    87  * 
     95 *
    8896 *  According to the COM Identity Rule, interface pointers are considered to be
    8997 *  equal if and only if IUnknown pointers queried on these interfaces pointers
    9098 *  are equal (e.g. have the same binary value). Equal interface pointers
    9199 *  represent the same object even if they are pointers to different interfaces.
    92  * 
     100 *
    93101 *  @param I1   Class of the first interface pointer (must be derived from
    94102 *              IUnknown).
     
    145153}
    146154
    147 /** 
     155/**
    148156 *  Base template for smart COM pointers. Not intended to be used directly.
    149157 */
  • trunk/include/VBox/com/string.h

    r8155 r9332  
    3434#define ___VBox_com_string_h
    3535
     36/* Make sure all the stdint.h macros are included - must come first! */
     37#ifndef __STDC_LIMIT_MACROS
     38# define __STDC_LIMIT_MACROS
     39#endif
     40#ifndef __STDC_CONSTANT_MACROS
     41# define __STDC_CONSTANT_MACROS
     42#endif
     43
    3644#if defined (VBOX_WITH_XPCOM)
    37 #include <nsMemory.h>
     45# include <nsMemory.h>
    3846#endif
    3947
  • trunk/src/VBox/Main/MachineImpl.cpp

    r8744 r9332  
    1919 * additional information or have any questions.
    2020 */
     21
     22/* Make sure all the stdint.h macros are included - must come first! */
     23#ifndef __STDC_LIMIT_MACROS
     24# define __STDC_LIMIT_MACROS
     25#endif
     26#ifndef __STDC_CONSTANT_MACROS
     27# define __STDC_CONSTANT_MACROS
     28#endif
    2129
    2230#if defined(RT_OS_WINDOWS)
  • trunk/src/VBox/Main/xpcom/module.cpp

    r8768 r9332  
    1919 * additional information or have any questions.
    2020 */
     21
     22/* Make sure all the stdint.h macros are included - must come first! */
     23#ifndef __STDC_LIMIT_MACROS
     24# define __STDC_LIMIT_MACROS
     25#endif
     26#ifndef __STDC_CONSTANT_MACROS
     27# define __STDC_CONSTANT_MACROS
     28#endif
    2129
    2230#include <nsIGenericFactory.h>
     
    134142
    135143
    136 /** 
     144/**
    137145 *  Component definition table.
    138146 *  Lists all components defined in this module.
  • trunk/src/VBox/Main/xpcom/server.cpp

    r8768 r9332  
    1919 * additional information or have any questions.
    2020 */
     21
     22/* Make sure all the stdint.h macros are included - must come first! */
     23#ifndef __STDC_LIMIT_MACROS
     24# define __STDC_LIMIT_MACROS
     25#endif
     26#ifndef __STDC_CONSTANT_MACROS
     27# define __STDC_CONSTANT_MACROS
     28#endif
    2129
    2230#include <ipcIService.h>
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