File: nameslist-dll.h

package info (click to toggle)
libuninameslist 20190701-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,860 kB
  • sloc: ansic: 95,072; python: 118; makefile: 107; sh: 4
file content (19 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Generic helper definitions for shared library support */
/* as explained in - https://gcc.gnu.org/wiki/Visibility */
#if defined _WIN32 || defined __CYGWIN__
  #define UN_DLL_IMPORT __declspec(dllimport)
  #define UN_DLL_EXPORT __declspec(dllexport)
  #define UN_DLL_LOCAL
#else
  #if __GNUC__ >= 4
    #define UN_DLL_IMPORT __attribute__ ((visibility ("default")))
    #define UN_DLL_EXPORT __attribute__ ((visibility ("default")))
    /* 'internal' to avoid library conflicts. 'hidden' for debugging */
    /* #define UN_DLL_LOCAL  __attribute__ ((visibility ("hidden"))) */
    #define UN_DLL_LOCAL  __attribute__ ((visibility ("internal")))
  #else
    #define UN_DLL_IMPORT
    #define UN_DLL_EXPORT
    #define UN_DLL_LOCAL
  #endif
#endif