basicmacros.h
1 #ifndef _PHASERET_BASICMACROS_H
2 #define _PHASERET_BASICMACROS_H
3 
4 #ifndef PHASERET_API
5 #if defined(_WIN32) || defined(__WIN32__)
6 # if defined(PHASERET_BUILD_SHARED)
7 # define PHASERET_API __declspec(dllexport)
8 # elif !defined(PHASERET_BUILD_STATIC)
9 # define PHASERET_API __declspec(dllimport)
10 # else
11 # define PHASERET_API
12 # endif
13 #else
14 // # if __GNUC__ >= 4
15 // # define PHASERET_API __attribute__((visibility("default")))
16 // # else
17 # define PHASERET_API
18 // # endif
19 #endif
20 #endif
21 
22 #define PHASERET_NAME_DOUBLE(name) LTFAT_MAKENAME(phaseret,name,_d)
23 #define PHASERET_NAME_SINGLE(name) LTFAT_MAKENAME(phaseret,name,_s)
24 #define PHASERET_NAME_COMPLEXDOUBLE(name) LTFAT_MAKENAME(phaseret,name,_dc)
25 #define PHASERET_NAME_COMPLEXSINGLE(name) LTFAT_MAKENAME(phaseret,name,_sc)
26 
27 #endif