vadefs.h: be even more conservative and only define the macros if already defined

llvm-svn: 219745
This commit is contained in:
Hans Wennborg 2014-10-14 23:20:25 +00:00
parent e0db196556
commit 818514b718
1 changed files with 3 additions and 4 deletions

View File

@ -34,17 +34,16 @@
/* Override macros from vadefs.h with definitions that work with Clang. */
#ifdef _crt_va_start
#undef _crt_va_start
#define _crt_va_start(ap, param) __builtin_va_start(ap, param)
#endif
#ifdef _crt_va_end
#undef _crt_va_end
#define _crt_va_end(ap) __builtin_va_end(ap)
#endif
#ifdef _crt_va_arg
#undef _crt_va_arg
#endif
#define _crt_va_start(ap, param) __builtin_va_start(ap, param)
#define _crt_va_end(ap) __builtin_va_end(ap)
#define _crt_va_arg(ap, type) __builtin_va_arg(ap, type)
#endif
#endif
#endif