Added standard macro guard. In case __GNUC_VA_LIST was not

defined or defined identically before there will not be any
change in functionality.

MinGW-w64 defines __GNUC_VA_LIST as

  #define __GNUC_VA_LIST
  
which is different than the definition here, causing
a warning without the guard.
 

llvm-svn: 212183
This commit is contained in:
Yaron Keren 2014-07-02 15:25:03 +00:00
parent adbbfd1fe9
commit 672efea2e9
1 changed files with 2 additions and 0 deletions

View File

@ -44,7 +44,9 @@ typedef __builtin_va_list va_list;
#endif
/* Hack required to make standard headers work, at least on Ubuntu */
#ifndef __GNUC_VA_LIST
#define __GNUC_VA_LIST 1
#endif
typedef __builtin_va_list __gnuc_va_list;
#endif /* __STDARG_H */