File: export.h

package info (click to toggle)
termrec 0.19-2.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,024 kB
  • sloc: ansic: 8,435; makefile: 182; perl: 16; sh: 15
file content (16 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifdef WIN32
# define export __declspec(dllexport)
# define VISIBILITY_ENABLE
# define VISIBILITY_DISABLE
#else
#ifdef GCC_VISIBILITY
# define export __attribute__ ((visibility ("default")))
# pragma GCC visibility push(hidden)
# define VISIBILITY_ENABLE  _Pragma("GCC visibility push(default)")
# define VISIBILITY_DISABLE _Pragma("GCC visibility push(hidden)")
#else
# define export // we'll leak symbols...
# define VISIBILITY_ENABLE
# define VISIBILITY_DISABLE
#endif
#endif