PLplot
5.15.0
Toggle main menu visibility
Loading...
Searching...
No Matches
nndll.h
Go to the documentation of this file.
1
#ifndef __NN_DLL_H
2
#define __NN_DLL_H
3
4
#ifdef USINGDLL
5
#if defined ( _WIN32 )
6
// Visual C/C++, Borland, MinGW and Watcom
7
#if defined ( __VISUALC__ ) || defined ( _MSC_VER ) || defined ( __BORLANDC__ ) || defined ( __GNUC__ ) || defined ( __WATCOMC__ )
8
#define NNDLLEXPORT __declspec( dllexport )
9
#define NNDLLIMPORT __declspec( dllimport )
10
#else
11
#define NNDLLEXPORT
12
#define NNDLLIMPORT
13
#endif
14
#elif defined ( __CYGWIN__ )
15
#define NNDLLEXPORT __declspec( dllexport )
16
#define NNDLLIMPORT __declspec( dllimport )
17
#elif defined ( __GNUC__ ) && __GNUC__ > 3
18
// Follow ideas in http://gcc.gnu.org/wiki/Visibility for GCC version 4.x
19
// The following forces exported symbols specifically designated with
20
// NNDLLEXPORT to be visible.
21
#define NNDLLEXPORT __attribute__ ( ( visibility( "default" ) ) )
22
#define NNDLLIMPORT
23
#endif
24
#endif
25
26
// For an unknown compiler or static built we clear the macros
27
#ifndef NNDLLEXPORT
28
#define NNDLLEXPORT
29
#define NNDLLIMPORT
30
#endif
31
32
// The IMPEXP macros will always be set to DLLIMPORT (even for
33
// the static library, but DLLIMPORT is empty in this case). If
34
// cmake sets the corresponding macro xxxx_EXPORTS if the
35
// corresponding library is built DLLIMPEXP is set to DLLEXPORT
36
#if defined ( csironn_EXPORTS )
37
#define NNDLLIMPEXP NNDLLEXPORT
38
#define NNDLLIMPEXP_DATA( type ) NNDLLEXPORT type
39
#else
40
#define NNDLLIMPEXP NNDLLIMPORT
41
#define NNDLLIMPEXP_DATA( type ) NNDLLIMPORT type
42
#endif
43
44
#endif
// __NN_DLL_H
lib
nn
nndll.h
Generated on
for PLplot by
1.17.0