File: api.h

package info (click to toggle)
libgwenhywfar 4.12.0beta-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 12,004 kB
  • ctags: 7,553
  • sloc: ansic: 98,857; sh: 11,641; cpp: 8,598; objc: 2,525; makefile: 1,710; xml: 876
file content (52 lines) | stat: -rw-r--r-- 1,381 bytes parent folder | download | duplicates (3)
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))
# 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