File: api.h

package info (click to toggle)
libgwenhywfar 5.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,300 kB
  • sloc: ansic: 135,622; cpp: 11,186; sh: 5,025; objc: 2,548; makefile: 2,357; xml: 1,882
file content (52 lines) | stat: -rw-r--r-- 1,377 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/***************************************************************************
    copyright   : (C) 2012 by Martin Preuss
    email       : martin@libchipcard.de

 ***************************************************************************
 *          Please see toplevel file COPYING for license details           *
 ***************************************************************************/

#ifndef GWEN_GUI_CPP_API_H
#define GWEN_GUI_CPP_API_H


#include <gwenhywfar/types.h>

#if (defined __GNUC__ && (! defined (__sun)) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))) || defined _MSC_VER
# ifdef BUILDING_CPP_GUI
/* building Cpp */
#  if GWENHYWFAR_SYS_IS_WINDOWS
/* for windows */
#    ifdef __declspec
#      define CPPGUI_API __declspec (dllexport)
#    else /* if __declspec */
#      define CPPGUI_API
#    endif /* if NOT __declspec */
#  else
/* for non-win32 */
#    ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
#      define CPPGUI_API __attribute__((visibility("default")))
#    else
#      define CPPGUI_API
#    endif
#  endif
# else
/* not building Cpp */
#  if GWENHYWFAR_SYS_IS_WINDOWS
/* for windows */
#    ifdef __declspec
#      define CPPGUI_API __declspec (dllimport)
#    else /* if __declspec */
#      define CPPGUI_API
#    endif /* if NOT __declspec */
#  else
/* for non-win32 */
#    define CPPGUI_API
#  endif
# endif
#endif



#endif