libiqxmlrpc  0.12.4
 All Classes Namespaces Files Functions Typedefs Enumerations
api_export.h
1 // Libiqxmlrpc - an object-oriented XML-RPC solution.
2 // Copyright (C) 2011 Anton Dedov
3 
4 #ifndef _libiqxmlrpc_api_export_
5 #define _libiqxmlrpc_api_export_
6 
7 #include "sysinc.h"
8 
9 #if defined(WIN32) || defined(__MINGW32__)
10  #define LIBIQXMLRPC_DLL
11 #endif // WIN32 || __MINGW32__
12 
13 #ifdef LIBIQXMLRPC_DLL
14  #if defined(LIBIQXMLRPC_COMPILATION) && defined(DLL_EXPORT)
15  #define LIBIQXMLRPC_API __declspec(dllexport)
16  #elif !defined(LIBIQXMLRPC_COMPILATION)
17  #define LIBIQXMLRPC_API __declspec(dllimport)
18  #else
19  #define LIBIQXMLRPC_API
20  #endif // LIBIQXMLRPC_COMPILATION && DLL_EXPORT
21 #elif defined(__GNUC__) && __GNUC__ > 3
22  #define LIBIQXMLRPC_API __attribute__((visibility("default")))
23 #else
24  #define LIBIQXMLRPC_API
25 #endif // LIBIQXMLRPC_DLL
26 
27 #endif