gwenhywfar  5.11.1beta
gwen-gui-cpp/api.h
Go to the documentation of this file.
1 /***************************************************************************
2  copyright : (C) 2012 by Martin Preuss
3  email : martin@libchipcard.de
4 
5  ***************************************************************************
6  * Please see toplevel file COPYING for license details *
7  ***************************************************************************/
8 
9 #ifndef GWEN_GUI_CPP_API_H
10 #define GWEN_GUI_CPP_API_H
11 
12 
13 #include <gwenhywfar/types.h>
14 
15 #if (defined __GNUC__ && (! defined (__sun)) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))) || defined _MSC_VER
16 # ifdef BUILDING_CPP_GUI
17 /* building Cpp */
18 # if GWENHYWFAR_SYS_IS_WINDOWS
19 /* for windows */
20 # ifdef __declspec
21 # define CPPGUI_API __declspec (dllexport)
22 # else /* if __declspec */
23 # define CPPGUI_API
24 # endif /* if NOT __declspec */
25 # else
26 /* for non-win32 */
27 # ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
28 # define CPPGUI_API __attribute__((visibility("default")))
29 # else
30 # define CPPGUI_API
31 # endif
32 # endif
33 # else
34 /* not building Cpp */
35 # if GWENHYWFAR_SYS_IS_WINDOWS
36 /* for windows */
37 # ifdef __declspec
38 # define CPPGUI_API __declspec (dllimport)
39 # else /* if __declspec */
40 # define CPPGUI_API
41 # endif /* if NOT __declspec */
42 # else
43 /* for non-win32 */
44 # define CPPGUI_API
45 # endif
46 # endif
47 #endif
48 
49 
50 
51 #endif
52