Implemented C/C++ fix for complex.h

split_sum
Cirdans-Home 3 years ago
parent c38660c76c
commit c1727fec5d

@ -32,8 +32,15 @@ extern "C" {
typedef float psb_s_t;
typedef double psb_d_t;
typedef float complex psb_c_t;
typedef double complex psb_z_t;
#ifdef __cplusplus
using psb_c_t = std::complex<float>;
using psb_z_t = std::complex<double>;
#else
typedef float complex psb_c_t;
typedef float complex psb_z_t;
#endif
#define PSB_ERR_ERROR -1
#define PSB_ERR_SUCCESS 0

Loading…
Cancel
Save