forked from OSchip/llvm-project
vadefs.h: be even more conservative and only define the macros if already defined
llvm-svn: 219745
This commit is contained in:
parent
e0db196556
commit
818514b718
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue