libalerror  1.14
 All Classes Files Functions Macros Pages
config.h
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef _LIBALERROR_ALERROR_CONFIG_H_
14 #define _LIBALERROR_ALERROR_CONFIG_H_
15 
16 #if defined _WIN32 || defined __CYGWIN__
17 # define ALERROR_EXPORT_API __declspec(dllexport)
18 # if defined _WINDLL
19 # define ALERROR_IMPORT_API __declspec(dllimport)
20 # else
21 # define ALERROR_IMPORT_API
22 # endif
23 #elif __GNUC__ >= 4
24 # define ALERROR_EXPORT_API __attribute__ ((visibility("default")))
25 # define ALERROR_IMPORT_API __attribute__ ((visibility("default")))
26 #else
27 # define ALERROR_EXPORT_API
28 # define ALERROR_IMPORT_API
29 #endif
30 
31 #ifdef alerror_EXPORTS
32 # define ALERROR_API ALERROR_EXPORT_API
33 #elif defined(alerror_IMPORTS)
34 # define ALERROR_API ALERROR_IMPORT_API
35 #else
36 # define ALERROR_API
37 #endif
38 
39 // Deprecated
40 #if defined(__GNUC__) && defined(WITH_DEPRECATED) && !defined(QI_NO_API_DEPRECATED)
41 # define QI_API_DEPRECATED __attribute__((deprecated))
42 #elif defined(_MSC_VER) && defined(WITH_DEPRECATED) && !defined(QI_NO_API_DEPRECATED)
43 # define QI_API_DEPRECATED __declspec(deprecated)
44 #else
45 # define QI_API_DEPRECATED
46 #endif
47 
48 #endif // _LIBALERROR_ALERROR_CONFIG_H_
49