VirtualBox

Changeset 40945 in vbox for trunk/include


Ignore:
Timestamp:
Apr 16, 2012 4:11:56 PM (13 years ago)
Author:
vboxsync
Message:

iprt: dance with NULL.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r40874 r40945  
    18111811#endif
    18121812
    1813 
    1814 /** @def NULL
    1815  * NULL pointer.
    1816  */
    1817 #ifndef NULL
    1818 # ifdef __cplusplus
    1819 #  define NULL 0
    1820 # else
    1821 #  define NULL ((void*)0)
    1822 # endif
    1823 #endif
    1824 
    18251813/** @def NIL_OFFSET
    18261814 * NIL offset.
  • trunk/include/iprt/types.h

    r40943 r40945  
    133133     */
    134134#  undef NULL
    135 #  if defined(__cplusplus)
    136 #   define NULL 0
    137 #  else
    138 #   define NULL ((void *)0)
    139 #  endif
    140135#  undef uintptr_t
    141136#  ifdef __GNUC__
     
    159154#  include <sys/types.h>
    160155# endif
     156
     157/** @def NULL
     158 * NULL pointer.
     159 */
     160#ifndef NULL
     161# ifdef __cplusplus
     162#  define NULL 0
     163# else
     164#  define NULL ((void*)0)
     165# endif
     166#endif
    161167
    162168/* Define any types missing from sys/types.h on windows. */
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