2017-12-10 20:40:41 +00:00
|
|
|
#pragma once
|
2021-06-19 22:53:07 +00:00
|
|
|
#if !defined(EXPORTDEF_H)
|
2016-06-04 13:24:23 +00:00
|
|
|
#define EXPORTDEF_H
|
2021-06-19 22:53:07 +00:00
|
|
|
#if _WIN32 || __CYGWIN__
|
2021-06-07 00:05:58 +00:00
|
|
|
#if __GNUC__
|
2016-06-04 13:24:23 +00:00
|
|
|
#define EXPORT __attribute__ ((dllexport))
|
|
|
|
#else
|
|
|
|
#define EXPORT __declspec(dllexport) // Note: actually gcc seems to also supports this syntax.
|
|
|
|
#endif
|
|
|
|
#else
|
2016-07-31 13:48:50 +00:00
|
|
|
#if __GNUC__ >= 4
|
|
|
|
#define EXPORT __attribute__ ((visibility ("default")))
|
|
|
|
#else
|
|
|
|
#define EXPORT
|
|
|
|
#endif
|
2016-06-04 13:24:23 +00:00
|
|
|
#endif
|
|
|
|
#define DLLEXPORT EXPORT
|
|
|
|
#define _DLLEXPORT EXPORT
|
|
|
|
#endif // EXPORTDEF_H
|