libzypp  17.18.0
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_DECL_EXPORT __attribute__ ((visibility ("default")))
35  #define ZYPP_DECL_IMPORT __attribute__ ((visibility ("default")))
36  #define ZYPP_DECL_HIDDEN __attribute__ ((visibility ("hidden")))
37 #else
38  #define ZYPP_DECL_EXPORT
39  #define ZYPP_DECL_IMPORT
40  #define ZYPP_DECL_HIDDEN
41 #endif
42 
43 #ifdef ZYPP_DLL //defined if zypp is compiled as DLL
44  #define ZYPP_API ZYPP_DECL_EXPORT
45  #define ZYPP_LOCAL ZYPP_DECL_HIDDEN
46 #else
47  #define ZYPP_API ZYPP_DECL_IMPORT
48  #define ZYPP_LOCAL
49 #endif
50 
82 #if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)
83  #ifndef ZYPP_DEPRECATED
84  #define ZYPP_DEPRECATED __attribute__ ((deprecated))
85  #endif
86 #else
87  #ifndef ZYPP_DEPRECATED
88  #define ZYPP_DEPRECATED
89  #endif
90 #endif
91 
92 #endif //ZYPP_APICONFIG_H