mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
Merge branch 'ebassi/revert-bool-constants' into 'main'
Revert "Alias TRUE and FALSE to C99's true and false" See merge request GNOME/glib!4089
This commit is contained in:
commit
317739c8e2
@ -39,9 +39,6 @@
|
|||||||
*/
|
*/
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
/* We include stdbool.h to get the system's definition of true and false */
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Note: Clang (but not clang-cl) defines __GNUC__ and __GNUC_MINOR__.
|
* Note: Clang (but not clang-cl) defines __GNUC__ and __GNUC_MINOR__.
|
||||||
* Both Clang 11.1 on current Arch Linux and Apple's Clang 12.0 define
|
* Both Clang 11.1 on current Arch Linux and Apple's Clang 12.0 define
|
||||||
@ -925,11 +922,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FALSE
|
#ifndef FALSE
|
||||||
#define FALSE false
|
#define FALSE (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef TRUE
|
#ifndef TRUE
|
||||||
#define TRUE true
|
#define TRUE (!FALSE)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef MAX
|
#undef MAX
|
||||||
|
Loading…
x
Reference in New Issue
Block a user