-
Notifications
You must be signed in to change notification settings - Fork 25
/
spiro_intf.h
36 lines (33 loc) · 1.14 KB
/
spiro_intf.h
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
/* spiro_intf.h
libspiro - A sharable library of Spiro formula and functions.
*/
#ifndef _SPIRO_INTF_H
#define _SPIRO_INTF_H
/* Generic helper definitions for shared library support */
/* as explained in - https://gcc.gnu.org/wiki/Visibility */
#if defined (_WIN32) || defined (__CYGWIN__) || (_WIN64) || defined (__CYGWIN64__)
#ifndef __clang__
#define LS_DLL_IMPORT __declspec(dllimport)
#define LS_DLL_EXPORT __declspec(dllexport)
#define LS_DLL_LOCAL
#else
/* CLANG already appears to add this. Turn this off. */
#define LS_DLL_IMPORT
#define LS_DLL_EXPORT
#define LS_DLL_LOCAL
#endif
#else
#if __GNUC__ >= 4
#define LS_DLL_IMPORT __attribute__ ((visibility ("default")))
#define LS_DLL_EXPORT __attribute__ ((visibility ("default")))
/* 'internal' to avoid library conflicts. 'hidden' for debugging */
/* #define UN_DLL_LOCAL __attribute__ ((visibility ("hidden"))) */
#define LS_DLL_LOCAL __attribute__ ((visibility ("internal")))
#else
#define LS_DLL_IMPORT
#define LS_DLL_EXPORT
#define LS_DLL_LOCAL
#endif
#endif
int spiroreverse(spiro_cp *src, int n); /* internal use */
#endif