clang: lib/Headers/stdbool.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10#ifndef __STDBOOL_H

11#define __STDBOOL_H

12

13#define __bool_true_false_are_defined 1

14

15#if defined(__MVS__) && __has_include_next(<stdbool.h>)

16#include_next <stdbool.h>

17#else

18

19#if defined(__STDC_VERSION__) && __STDC_VERSION__ > 201710L

20

21

22

23#elif !defined(__cplusplus)

24#define bool _Bool

25#define true 1

26#define false 0

27#elif defined(__GNUC__) && !defined(__STRICT_ANSI__)

28

29#define _Bool bool

30#if defined(__cplusplus) && __cplusplus < 201103L

31

32#define bool bool

33#define false false

34#define true true

35#endif

36#endif

37

38#endif

39#endif