Skip to content
Snippets Groups Projects
Commit cfbb0138 authored by Chandler Carruth's avatar Chandler Carruth
Browse files

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201738 91177308-0d34-0410-b5e6-96231b3b80d8
parent 392b0bcc
No related branches found
No related tags found
No related merge requests found
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
/* C99 5.2.4.2.1: Added long long. /* 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>. 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_MIN
#undef LLONG_MAX #undef LLONG_MAX
......
...@@ -39,7 +39,7 @@ typedef __builtin_va_list va_list; ...@@ -39,7 +39,7 @@ typedef __builtin_va_list va_list;
*/ */
#define __va_copy(d,s) __builtin_va_copy(d,s) #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) #define va_copy(dest, src) __builtin_va_copy(dest, src)
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment