PssMathParser  1.0.0
Parser of mathemathical expressions
 All Classes Namespaces Files Functions Variables Enumerations Macros Pages
pssmathparser_global.h
Go to the documentation of this file.
1 
23 #ifndef PSSMATHPARSER_GLOBAL_H
24 #define PSSMATHPARSER_GLOBAL_H
25 
26 #define DEBUG_MESSAGES_PSSMATHPARSER 0
27 #define DEBUG_MESSAGES_PSSMATHPARSER_FUNCPOINTERS 0
29 // Versioning
30 #ifndef VERSION
31  #define VERSION 0.0.0
32 #endif
33 
34 // These are defined in math.h
35 #define _USE_MATH_DEFINES
36 
37 // These is the dll spec for WIN and LINUX
38 #if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
39  #ifdef BUILDING_DLL
40  #ifdef __GNUC__
41  #define PSSMATHPARSER_EXPORT_PUBLIC __attribute__ ((dllexport))
42  #else // Note: actually gcc seems to also supports this syntax.
43  #define PSSMATHPARSER_EXPORT_PUBLIC __declspec(dllexport)
44  #endif
45  #else
46  #ifdef __GNUC__
47  #define PSSMATHPARSER_EXPORT_PUBLIC __attribute__ ((dllimport))
48  #else // Note: actually gcc seems to also supports this syntax.
49  #define PSSMATHPARSER_EXPORT_PUBLIC __declspec(dllimport)
50  #endif
51  #endif
52  #define PSSMATHPARSER_EXPORT_LOCAL
53 #else
54  #if __GNUC__ >= 4
55  #define PSSMATHPARSER_EXPORT_PUBLIC __attribute__ ((visibility ("default")))
56  #define PSSMATHPARSER_EXPORT_LOCAL __attribute__ ((visibility ("hidden")))
57  #else
58  #define PSSMATHPARSER_EXPORT_PUBLIC
59  #define PSSMATHPARSER_EXPORT_LOCAL
60  #endif
61 #endif
62 
63 #endif // PSSMATHPARSER_GLOBAL_H