export.hpp (1005B)
1 #pragma once 2 3 #ifdef SPANK_OLM_STATIC_DEFINE 4 # define SPANK_OLM_EXPORT 5 # define SPANK_OLM_NO_EXPORT 6 #else 7 # ifndef SPANK_OLM_EXPORT 8 # ifdef SPANK_olm_EXPORTS 9 /* We are building this library */ 10 # define SPANK_OLM_EXPORT __attribute__((visibility("default"))) 11 # else 12 /* We are using this library */ 13 # define SPANK_OLM_EXPORT __attribute__((visibility("default"))) 14 # endif 15 # endif 16 17 # ifndef SPANK_OLM_NO_EXPORT 18 # define SPANK_OLM_NO_EXPORT __attribute__((visibility("hidden"))) 19 # endif 20 #endif 21 22 #ifndef SPANK_OLM_DEPRECATED 23 # define SPANK_OLM_DEPRECATED __attribute__ ((__deprecated__)) 24 #endif 25 26 #ifndef SPANK_OLM_DEPRECATED_EXPORT 27 # define SPANK_OLM_DEPRECATED_EXPORT SPANK_OLM_EXPORT SPANK_OLM_DEPRECATED 28 #endif 29 30 #ifndef SPANK_OLM_DEPRECATED_NO_EXPORT 31 # define SPANK_OLM_DEPRECATED_NO_EXPORT SPANK_OLM_NO_EXPORT SPANK_OLM_DEPRECATED 32 #endif 33 34 #if 0 /* DEFINE_NO_DEPRECATED */ 35 # ifndef SPANK_OLM_NO_DEPRECATED 36 # define SPANK_OLM_NO_DEPRECATED 37 # endif 38 #endif 39