source: git/factory/globaldefs.h

spielwiese
Last change on this file was d8c601, checked in by Hans Schoenemann <hannes@…>, 2 years ago
allow static build on cygwin (autoconf set -DDLL_EXPORT for -fPIC)
  • Property mode set to 100644
File size: 587 bytes
Line 
1#ifndef _SINGULAR_GLOBALDEFS_H
2#define _SINGULAR_GLOBALDEFS_H
3
4#ifndef PSINGULAR
5#define VAR
6#define EXTERN_VAR extern
7#define STATIC_VAR static
8#define INST_VAR
9#define EXTERN_INST_VAR extern
10#define STATIC_INST_VAR static
11#define GLOBAL_VAR
12#define THREAD_VAR
13#else
14#define GLOBAL_VAR
15#define THREAD_VAR __thread
16#endif
17
18#if defined(__CYGWIN__) && defined(DLL_EXPORT)
19  #ifdef FACTORY_BUILDING_DLL
20    #define FACTORY_PUBLIC __declspec(dllexport)
21  #else
22    #define FACTORY_PUBLIC __declspec(dllimport)
23  #endif
24#else
25  #define FACTORY_PUBLIC
26#endif
27
28#endif // _SINGULAR_GLOBALDEFS_H
Note: See TracBrowser for help on using the repository browser.