summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Xianyi <traits.zhang@gmail.com>2015-12-05 00:45:29 +0800
committerZhang Xianyi <traits.zhang@gmail.com>2015-12-05 00:45:29 +0800
commit958f0de65e234e03b274871b018407807a786326 (patch)
treedb0bd67ed577001994121d3948c09349d2ea6c5b
parentda7f69e8f40142be14bb231c8989c594291f679a (diff)
downloadopenblas-958f0de65e234e03b274871b018407807a786326.tar.gz
openblas-958f0de65e234e03b274871b018407807a786326.tar.bz2
openblas-958f0de65e234e03b274871b018407807a786326.zip
Refs #708. Modified config template for MSVC.
-rw-r--r--openblas_config_template.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/openblas_config_template.h b/openblas_config_template.h
index b2a68c20e..fd6171492 100644
--- a/openblas_config_template.h
+++ b/openblas_config_template.h
@@ -58,9 +58,8 @@ typedef int blasint;
/* C99 supports complex floating numbers natively, which GCC also offers as an
extension since version 3.0. If neither are available, use a compatible
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 && !defined(__cplusplus))) // Visual Studio 2013 supports complex
+#if ((defined(__STDC_IEC_559_COMPLEX__) || __STDC_VERSION__ >= 199901L || \
+ (__GNUC__ >= 3 && !defined(__cplusplus))) && !(defined(FORCE_OPENBLAS_COMPLEX_STRUCT)))
#define OPENBLAS_COMPLEX_C99
#ifndef __cplusplus
#include <complex.h>