f806c5829b
* pre-commit: Update and enable clang-format check There is newer version from clang-format so use that. We do not yet want 18 as that is little bit too new. * Format some thing by hand which clang-format "breaks" Clang-format will format some things little bit off in some cases. Format some things by hand so we get cleaner end result. * Run clang-format with ``` pre-commit run --all-files clang-format ``` We have already in previously checked places where clang-format does not make good format and ignored those (hopefully most of the things). --------- Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
29 lines
382 B
C
29 lines
382 B
C
#ifndef STDBOOL_H
|
|
#define STDBOOL_H
|
|
|
|
/* C99 Boolean types for compilers without C99 support */
|
|
|
|
#ifndef __cplusplus
|
|
/* typedef char _Bool; */
|
|
#ifndef bool
|
|
#define bool _Bool
|
|
#endif
|
|
#ifndef true
|
|
#define true 1
|
|
#endif
|
|
#ifndef false
|
|
#define false 0
|
|
#endif
|
|
#define __bool_true_false_are_defined 1
|
|
#endif
|
|
|
|
#ifndef FALSE
|
|
#define FALSE 0
|
|
#endif
|
|
|
|
#ifndef TRUE
|
|
#define TRUE 1
|
|
#endif
|
|
|
|
#endif
|