File indexing completed on 2024-05-12 03:47:50
0001 /* 0002 File : nsl_complex.h 0003 Project : LabPlot 0004 Description : NSL complex data type support 0005 -------------------------------------------------------------------- 0006 SPDX-FileCopyrightText: 2019 Stefan Gerlach <stefan.gerlach@uni.kn> 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #ifndef NSL_COMPLEX_H 0011 #define NSL_COMPLEX_H 0012 0013 #ifdef _MSC_VER 0014 #ifdef __cplusplus 0015 #include <complex> 0016 #else 0017 #include <complex.h> 0018 #endif 0019 #define COMPLEX _Dcomplex 0020 #else 0021 0022 /* C++ including this header */ 0023 #ifdef __cplusplus 0024 #define COMPLEX double _Complex 0025 #else /* C */ 0026 #include <complex.h> 0027 #define COMPLEX double complex 0028 #endif 0029 0030 #endif /* _MSC_VER */ 0031 0032 #endif /* NSL_COMPLEX_H */