Go to the documentation of this file.
   22 #ifndef OPGP_LIBRARY_H 
   23 #define OPGP_LIBRARY_H 
   26 #if (defined(WIN32) || defined __CYGWIN__) 
   29                   #define OPGP_API __attribute__((dllexport)) 
   31                   #define OPGP_API __declspec(dllexport) 
   35                   #define OPGP_API __attribute__((dllimport)) 
   37                   #define OPGP_API __declspec(dllimport) 
   42         #if defined __GNUC__ && (__GNUC__ >= 4) 
   43                 #define OPGP_API __attribute__ ((visibility("default")))
 
   44                 #define OPGP_NO_API __attribute__ ((visibility("hidden")))
 
   52 #if (defined(WIN32) || defined __CYGWIN__) 
   53         #ifdef OPGP_PL_EXPORTS 
   55                   #define OPGP_PL_API __attribute__((dllexport)) 
   57                   #define OPGP_PL_API __declspec(dllexport) 
   61                   #define OPGP_PL_API __attribute__((dllimport)) 
   63                   #define OPGP_PL_API __declspec(dllimport) 
   67         #if defined __GNUC__ && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) 
   68                 #define OPGP_PL_API __attribute__ ((visibility("default")))
 
   78 #define CONSTRUCTOR __attribute__ ((constructor)) 
   79 #define DESTRUCTOR __attribute__ ((destructor))