Refs #193. Don't use C99 complex numbers when building C++ code.
This commit is contained in:
		
							parent
							
								
									875d520ccf
								
							
						
					
					
						commit
						64ad8b9809
					
				
							
								
								
									
										3
									
								
								common.h
								
								
								
								
							
							
						
						
									
										3
									
								
								common.h
								
								
								
								
							|  | @ -390,7 +390,8 @@ typedef int blasint; | ||||||
| /* C99 supports complex floating numbers natively, which GCC also offers as an
 | /* C99 supports complex floating numbers natively, which GCC also offers as an
 | ||||||
|    extension since version 3.0.  If neither are available, use a compatible |    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). */ |    structure as fallback (see Clause 6.2.5.13 of the C99 standard). */ | ||||||
| #if defined(__STDC_IEC_559_COMPLEX__) || __STDC_VERSION__ >= 199901L || __GNUC__ >= 3 | #if (defined(__STDC_IEC_559_COMPLEX__) || __STDC_VERSION__ >= 199901L || | ||||||
|  |      (__GNUC__ >= 3 && !defined(__cplusplus))) | ||||||
|   #define OPENBLAS_COMPLEX_C99 |   #define OPENBLAS_COMPLEX_C99 | ||||||
|   typedef float _Complex openblas_complex_float; |   typedef float _Complex openblas_complex_float; | ||||||
|   typedef double _Complex openblas_complex_double; |   typedef double _Complex openblas_complex_double; | ||||||
|  |  | ||||||
|  | @ -48,7 +48,8 @@ typedef int blasint; | ||||||
| /* C99 supports complex floating numbers natively, which GCC also offers as an
 | /* C99 supports complex floating numbers natively, which GCC also offers as an
 | ||||||
|    extension since version 3.0.  If neither are available, use a compatible |    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). */ |    structure as fallback (see Clause 6.2.5.13 of the C99 standard). */ | ||||||
| #if defined(__STDC_IEC_559_COMPLEX__) || __STDC_VERSION__ >= 199901L || __GNUC__ >= 3 | #if (defined(__STDC_IEC_559_COMPLEX__) || __STDC_VERSION__ >= 199901L || | ||||||
|  |      (__GNUC__ >= 3 && !defined(__cplusplus))) | ||||||
|   #define OPENBLAS_COMPLEX_C99 |   #define OPENBLAS_COMPLEX_C99 | ||||||
|   #include <complex.h> |   #include <complex.h> | ||||||
|   typedef float _Complex openblas_complex_float; |   typedef float _Complex openblas_complex_float; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue