source: mainline/uspace/lib/cpp/include/internal/common.hpp@ 0564a02e

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 0564a02e was 0564a02e, checked in by Dzejrou <dzejrou@…>, 7 years ago

cpp: added redefinition of NULL to <internal/common.hpp> to avoid problems with c headers that use it

  • Property mode set to 100644
File size: 420 bytes
Line 
1#ifndef LIBCPP_INTERNAL_COMMON
2#define LIBCPP_INTERNAL_COMMON
3
4/**
5 * G++ is will not properly include libc
6 * headers without this define.
7 */
8#define _Bool bool
9
10/**
11 * The restrict keyword is not part of the
12 * C++ standard, but g++ supports __restrict__,
13 * this might cause problems with other compilers
14 * like clang.
15 * TODO: Test this.
16 */
17#define restrict __restrict__
18
19#undef NULL
20#define NULL nullptr
21
22#endif
Note: See TracBrowser for help on using the repository browser.