From 0952d2d60dec9b4c8a1d279f25c184467408163c Mon Sep 17 00:00:00 2001 From: Eric-Paul Ickhorn Date: Sun, 3 Dec 2023 00:05:21 +0100 Subject: [PATCH] Fixed a potential warning caused by re-defining NULL --- core/exports/librr/types.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/exports/librr/types.h b/core/exports/librr/types.h index 481448c..64e049e 100644 --- a/core/exports/librr/types.h +++ b/core/exports/librr/types.h @@ -27,10 +27,20 @@ typedef i64_t isz_t; #endif +#ifndef TRUE #define TRUE (1) -#define FALSE (0) +#endif +#ifndef FALSE +#define FALSE (0) +#endif + +#ifndef NULL #define NULL ((void *) 0) +#endif + +#ifndef ZERO #define ZERO ((rune_t) 0) +#endif #endif // RR_TYPES_H