diff options
Diffstat (limited to 'Build/source/libs/gd/gd-2.0.35/cmake/modules/TestForHighBitCharacters.c')
-rw-r--r-- | Build/source/libs/gd/gd-2.0.35/cmake/modules/TestForHighBitCharacters.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Build/source/libs/gd/gd-2.0.35/cmake/modules/TestForHighBitCharacters.c b/Build/source/libs/gd/gd-2.0.35/cmake/modules/TestForHighBitCharacters.c deleted file mode 100644 index 338cc5ef72d..00000000000 --- a/Build/source/libs/gd/gd-2.0.35/cmake/modules/TestForHighBitCharacters.c +++ /dev/null @@ -1,22 +0,0 @@ -#include <ctype.h> -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int - main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) - exit(1); - exit (0); -} |