2017-12-10 21:40:41 +01:00
|
|
|
#pragma once
|
2016-06-04 15:24:23 +02:00
|
|
|
#ifndef EXPORTDEF_H
|
|
|
|
#define EXPORTDEF_H
|
|
|
|
#if defined _WIN32 || defined __CYGWIN__
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#define EXPORT __attribute__ ((dllexport))
|
|
|
|
#else
|
|
|
|
#define EXPORT __declspec(dllexport) // Note: actually gcc seems to also supports this syntax.
|
|
|
|
#endif
|
|
|
|
#else
|
2016-07-31 15:48:50 +02:00
|
|
|
#if __GNUC__ >= 4
|
|
|
|
#define EXPORT __attribute__ ((visibility ("default")))
|
|
|
|
#else
|
|
|
|
#define EXPORT
|
|
|
|
#endif
|
2016-06-04 15:24:23 +02:00
|
|
|
#endif
|
|
|
|
#define DLLEXPORT EXPORT
|
|
|
|
#define _DLLEXPORT EXPORT
|
|
|
|
#endif // EXPORTDEF_H
|