Compile with Intel CC: va_copy isn't defined.

This looks like a compiler bug. Intel CC uses the GCC headers, but
they appear to be incompatible. Bug will be reported, but meanwhile
work around the problem.

Reviewed-By: Trust Me
This commit is contained in:
Thiago Macieira
2010-08-11 21:14:53 +02:00
parent 25433ca87c
commit 740aadb7cd
2 changed files with 4 additions and 0 deletions

View File

@@ -58,6 +58,8 @@
#ifdef _MSC_VER
# define va_copy(dst, src) ((dst) = (src))
#elif defined(__INTEL_COMPILER) && !defined(va_copy)
# define va_copy __va_copy
#endif
#define CPLUSPLUS_NO_DEBUG_RULE

View File

@@ -60,6 +60,8 @@
#ifdef _MSC_VER
# define va_copy(dst, src) ((dst) = (src))
#elif defined(__INTEL_COMPILER) && !defined(va_copy)
# define va_copy __va_copy
#endif
using namespace CPlusPlus;