(Visual Studio) Don't use C99 complex numbers when building C++ code.
authorRay Glover <Ray@NAUSICA>
Tue, 17 Nov 2015 17:29:30 +0000 (17:29 +0000)
committerRay Glover <Ray@NAUSICA>
Tue, 17 Nov 2015 17:29:30 +0000 (17:29 +0000)
openblas_config_template.h

index 942a8f5..b2a68c2 100644 (file)
@@ -60,7 +60,7 @@ typedef int blasint;
    structure as fallback (see Clause 6.2.5.13 of the C99 standard). */
 #if (defined(__STDC_IEC_559_COMPLEX__) || __STDC_VERSION__ >= 199901L || \
      (__GNUC__ >= 3 && !defined(__cplusplus)) || \
-     _MSC_VER >= 1800) // Visual Studio 2013 supports complex
+     (_MSC_VER >= 1800 && !defined(__cplusplus))) // Visual Studio 2013 supports complex
   #define OPENBLAS_COMPLEX_C99
 #ifndef __cplusplus
   #include <complex.h>