freestnd-c-hdrs-0bsd/iso646.h

46 lines
1.1 KiB
C
Raw Normal View History

2024-01-02 21:14:05 +03:00
/* Copyright (C) 2022-2024 mintsuki and contributors.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
2023-04-16 08:24:29 +03:00
#ifndef __FSTD_HDRS_ISO646_H
#define __FSTD_HDRS_ISO646_H 1
2022-02-17 10:16:54 +03:00
#ifndef __cplusplus
#undef and
2022-02-17 10:16:54 +03:00
#define and &&
#undef and_eq
2022-02-17 10:16:54 +03:00
#define and_eq &=
#undef bitand
2022-02-17 10:16:54 +03:00
#define bitand &
#undef bitor
2022-02-17 10:16:54 +03:00
#define bitor |
#undef compl
2022-02-17 10:16:54 +03:00
#define compl ~
#undef not
2022-02-17 10:16:54 +03:00
#define not !
#undef not_eq
2022-02-17 10:16:54 +03:00
#define not_eq !=
#undef or
2022-02-17 10:16:54 +03:00
#define or ||
#undef or_eq
2022-02-17 10:16:54 +03:00
#define or_eq |=
#undef xor
2022-02-17 10:16:54 +03:00
#define xor ^
#undef xor_eq
2022-02-17 10:16:54 +03:00
#define xor_eq ^=
#endif
#endif