r219745 - vadefs.h: be even more conservative and only define the macros if already defined
Hans Wennborg
hans at hanshq.net
Tue Oct 14 16:20:25 PDT 2014
Author: hans
Date: Tue Oct 14 18:20:25 2014
New Revision: 219745
URL: http://llvm.org/viewvc/llvm-project?rev=219745&view=rev
Log:
vadefs.h: be even more conservative and only define the macros if already defined
Modified:
cfe/trunk/lib/Headers/vadefs.h
Modified: cfe/trunk/lib/Headers/vadefs.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/vadefs.h?rev=219745&r1=219744&r2=219745&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/vadefs.h (original)
+++ cfe/trunk/lib/Headers/vadefs.h Tue Oct 14 18:20:25 2014
@@ -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
More information about the cfe-commits
mailing list