Changeset 2506 for trunk/src/core.h


Ignore:
Timestamp:
Feb 26, 2013, 2:43:45 PM (7 years ago)
Author:
sam
Message:

base: start removing occurrences of NULL on our long journey to nullptr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core.h

    r2500 r2506  
    4545#   define FP_USE(x) (void)(x)
    4646#endif
     47
     48
     49/* Ensure we have nullptr */
     50#if defined nullptr
     51    /* do nothing */
     52#elif defined __GNUC__
     53#   define nullptr __null
     54#else
     55#   include <cstddef>
     56#   define nullptr NULL
     57#endif
     58
    4759
    4860/* Ensure isnan() is present even on systems that don't define it, or
Note: See TracChangeset for help on using the changeset viewer.