summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive/build/cmake/CheckHeaderSTDC.c
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmlibarchive/build/cmake/CheckHeaderSTDC.c')
-rw-r--r--Utilities/cmlibarchive/build/cmake/CheckHeaderSTDC.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/Utilities/cmlibarchive/build/cmake/CheckHeaderSTDC.c b/Utilities/cmlibarchive/build/cmake/CheckHeaderSTDC.c
deleted file mode 100644
index cba0810..0000000
--- a/Utilities/cmlibarchive/build/cmake/CheckHeaderSTDC.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <ctype.h>
-
-#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#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))
- return 2;
- }
- return 0;
-}