summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-02-19 23:38:18 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-02-19 23:38:18 +0000
commit7ce956ded49fd8c7fd1665e96530f179d05229ca (patch)
treeb38cd18e4197351d159ed05c456b3ebb10f665a8 /clang
parent92cdbc8f2d189729fb69c1ede2604fe2751ba407 (diff)
downloadbcm5719-llvm-7ce956ded49fd8c7fd1665e96530f179d05229ca.tar.gz
bcm5719-llvm-7ce956ded49fd8c7fd1665e96530f179d05229ca.zip
Fix two pedantic issues with our builtin headers. The __STDC_VERSION__
for C99 is '199901L' and we shouldn't be comparing it with anything else. Neither of these should have had any impact in practice. llvm-svn: 201738
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Headers/limits.h2
-rw-r--r--clang/lib/Headers/stdarg.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Headers/limits.h b/clang/lib/Headers/limits.h
index 68efbc373eb..f04187ced26 100644
--- a/clang/lib/Headers/limits.h
+++ b/clang/lib/Headers/limits.h
@@ -89,7 +89,7 @@
/* C99 5.2.4.2.1: Added long long.
C++11 18.3.3.2: same contents as the Standard C Library header <limits.h>.
*/
-#if __STDC_VERSION__ >= 199901 || __cplusplus >= 201103L
+#if __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L
#undef LLONG_MIN
#undef LLONG_MAX
diff --git a/clang/lib/Headers/stdarg.h b/clang/lib/Headers/stdarg.h
index 2957bf058ea..6110a06641c 100644
--- a/clang/lib/Headers/stdarg.h
+++ b/clang/lib/Headers/stdarg.h
@@ -39,7 +39,7 @@ typedef __builtin_va_list va_list;
*/
#define __va_copy(d,s) __builtin_va_copy(d,s)
-#if __STDC_VERSION__ >= 199900L || __cplusplus >= 201103L || !defined(__STRICT_ANSI__)
+#if __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L || !defined(__STRICT_ANSI__)
#define va_copy(dest, src) __builtin_va_copy(dest, src)
#endif
OpenPOWER on IntegriCloud