Go to the documentation of this file.
35 #ifndef OPGP_LIBRARY_H
36 #define OPGP_LIBRARY_H
39 #if (defined(WIN32) || defined __CYGWIN__)
46 #define OPGP_API __attribute__((dllexport))
48 #define OPGP_API __declspec(dllexport)
52 #define OPGP_API __attribute__((dllimport))
54 #define OPGP_API __declspec(dllimport)
60 #if defined __GNUC__ && (__GNUC__ >= 4)
61 #define OPGP_API __attribute__ ((visibility("default")))
62 #define OPGP_NO_API __attribute__ ((visibility("hidden")))
70 #if (defined(WIN32) || defined __CYGWIN__)
74 #ifdef OPGP_PL_EXPORTS
76 #define OPGP_PL_API __attribute__((dllexport))
78 #define OPGP_PL_API __declspec(dllexport)
82 #define OPGP_PL_API __attribute__((dllimport))
84 #define OPGP_PL_API __declspec(dllimport)
89 #if defined __GNUC__ && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
90 #define OPGP_PL_API __attribute__ ((visibility("default")))
100 #define CONSTRUCTOR __attribute__ ((constructor))
101 #define DESTRUCTOR __attribute__ ((destructor))