diff options
author | Brad King <brad.king@kitware.com> | 2009-11-30 22:22:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-11-30 22:22:24 (GMT) |
commit | 8b2f6dbfa2ba0ebac7a538d97314577e7075968a (patch) | |
tree | 27c3c9af4bde70a4b11f049ca92a246a055432f9 /Utilities/cmlibarchive/build/cmake/CheckHeaderSTDC.c | |
parent | c9235c0159a75b55aae3e14bce852dd92b90a0f9 (diff) | |
download | CMake-8b2f6dbfa2ba0ebac7a538d97314577e7075968a.zip CMake-8b2f6dbfa2ba0ebac7a538d97314577e7075968a.tar.gz CMake-8b2f6dbfa2ba0ebac7a538d97314577e7075968a.tar.bz2 |
libarchive: Remove unused STDC_HEADERS try_run
This was the only try_run() in libarchive, and the result was not used
in the source code. We remove it to allow cross-compiling to work.
Diffstat (limited to 'Utilities/cmlibarchive/build/cmake/CheckHeaderSTDC.c')
-rw-r--r-- | Utilities/cmlibarchive/build/cmake/CheckHeaderSTDC.c | 20 |
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; -} |