clibs
Tiny but handy utility libraries for C
Loading...
Searching...
No Matches
boolean.h
Go to the documentation of this file.
1
8
9
#ifndef CLIBS_BOOLEAN_H
10
#define CLIBS_BOOLEAN_H
11
12
#if defined(_WIN32)
13
/* On Windows, use the native Win32 BOOL */
14
#include <windows.h>
15
16
#else
/* Not Windows */
17
18
#ifndef CLIBS_BOOL_DEFINED
19
20
#if defined(__cplusplus)
21
typedef
bool
BOOL;
22
#define TRUE true
23
#define FALSE false
24
25
#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
26
#include <stdbool.h>
27
typedef
bool
BOOL;
28
#define TRUE true
29
#define FALSE false
30
31
#else
32
typedef
unsigned
char
BOOL;
33
#define TRUE 1
34
#define FALSE 0
35
#endif
36
37
#define CLIBS_BOOL_DEFINED
38
#endif
/* CLIBS_BOOL_DEFINED */
39
40
#endif
/* _WIN32 */
41
42
#endif
/* CLIBS_BOOLEAN_H */
Generated by
1.14.0