ItalaApi  1.3.3
Export.h
1 
2 /***********************************************************************************
3  *
4  * ItalaApi - Copyright (C) 2022 Opto Engineering
5  *
6  * THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES,
7  * INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
8  * FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
9  * HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY SUFFERED BY LICENSE AS
10  * A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
11  *
12  ***********************************************************************************/
13 
14 #ifndef ITALA_API_EXPORT_H
15 #define ITALA_API_EXPORT_H
16 
17 #ifdef ITALA_EXPORTS
18  #ifdef _WIN32
19  #define ITALA_API __declspec(dllexport)
20  #else
21  #define ITALA_API __attribute__((visibility("default")))
22  #endif
23 #else
24  #ifdef _WIN32
25  #define ITALA_API __declspec(dllimport)
26  #else
27  #define ITALA_API
28  #endif
29 #endif
30 
31 #ifndef ITALA_DEPRECATED
32  #if defined(_MSC_VER)
33  #define ITALA_DEPRECATED(message, declarator) __declspec(deprecated(message)) declarator
34  #elif defined(__GNUC__)
35  #define ITALA_DEPRECATED(message, declarator) __attribute__((deprecated(message))) declarator
36  #else
37  #define ITALA_DEPRECATED(message, declarator) declarator
38  #endif
39 #endif
40 
41 #endif