Misc updates to iso646.h to improve resiliency

This commit is contained in:
mintsuki 2023-04-25 23:19:25 +02:00
parent 03eaceb8ac
commit e5667ae492

View File

@ -1,16 +1,31 @@
#ifndef __FSTD_HDRS_ISO646_H
#define __FSTD_HDRS_ISO646_H 1
#ifndef __cplusplus
#undef and
#define and &&
#undef and_eq
#define and_eq &=
#undef bitand
#define bitand &
#undef bitor
#define bitor |
#undef compl
#define compl ~
#undef not
#define not !
#undef not_eq
#define not_eq !=
#undef or
#define or ||
#undef or_eq
#define or_eq |=
#undef xor
#define xor ^
#undef xor_eq
#define xor_eq ^=
#endif
#endif