libzypp  13.10.6
APIConfig.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_APICONFIG_H
13 #define ZYPP_APICONFIG_H
14 
15 #include "zypp/base/Easy.h" // some macros used almost everywhere
16 
33 #if __GNUC__ >= 4
34  #define ZYPP_HELPER_DLL_EXPORT __attribute__ ((visibility ("default")))
35  #define ZYPP_HELPER_DLL_LOCAL __attribute__ ((visibility ("hidden")))
36 #else
37  #define ZYPP_HELPER_DLL_EXPORT
38  #define ZYPP_HELPER_DLL_LOCAL
39 #endif
40 
41 #ifdef ZYPP_DLL //defined if zypp is compiled as DLL
42  #define ZYPP_API ZYPP_HELPER_DLL_EXPORT
43  #define ZYPP_LOCAL ZYPP_HELPER_DLL_LOCAL
44 #else
45  #define ZYPP_API
46  #define ZYPP_LOCAL
47 #endif
48 
80 #if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)
81  #ifndef ZYPP_DEPRECATED
82  #define ZYPP_DEPRECATED __attribute__ ((deprecated))
83  #endif
84 #else
85  #ifndef ZYPP_DEPRECATED
86  #define ZYPP_DEPRECATED
87  #endif
88 #endif
89 
90 #endif //ZYPP_APICONFIG_H