diff --git a/rc.h b/rc.h index be4a6b5..b22344d 100644 --- a/rc.h +++ b/rc.h @@ -47,9 +47,14 @@ typedef enum ecodes { eError, eBreak, eReturn, eVarstack, eArena, eFifo, eFd, eContinue } ecodes; +#if __STDC_VERSION__ >= 202311L +#define FALSE false +#define TRUE true +#else typedef enum bool { FALSE, TRUE } bool; +#endif typedef enum redirtype { rFrom, rCreate, rAppend, rHeredoc, rHerestring