Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 0aa5c8a in mainline


Ignore:
Timestamp:
2019-05-27T12:15:04Z (20 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
95174bf
Parents:
a0e2f9c
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-13 16:13:28)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-05-27 12:15:04)
Message:

Use <stddef.h> for NULL

We are using <stddef.h> provided by the compiler now,
but by some oversight <_bits/NULL.h> hasn't been changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abi/include/_bits/NULL.h

    ra0e2f9c r0aa5c8a  
    3737/** @file
    3838 * Definition of constant NULL.
    39  *
    40  * This definition is designed to work in both C and C++, and use
    41  * the special constant `nullptr` in C++11 and above.
    42  * Including this file is preferrable to defining the constant separately.
    4339 */
    4440
     
    4642#define _BITS_NULL_H_
    4743
    48 #ifndef NULL
    49 
    50 #if __cplusplus >= 201103L
    51 #define NULL  nullptr
    52 #elif defined(__cplusplus)
    53 #define NULL  0L
    54 #else
    55 #define NULL  ((void *) 0)
    56 #endif
    57 
    58 #endif
     44#define __need_NULL
     45#include <stddef.h>
    5946
    6047#endif
Note: See TracChangeset for help on using the changeset viewer.