mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-11 04:39:03 +01:00
20 lines
454 B
C
20 lines
454 B
C
#pragma once
|
|
#if !defined(EXPORTDEF_H)
|
|
#define EXPORTDEF_H
|
|
#if XASH_WIN32 || __CYGWIN__
|
|
#if __GNUC__
|
|
#define EXPORT __attribute__ ((dllexport))
|
|
#else
|
|
#define EXPORT __declspec(dllexport) // Note: actually gcc seems to also supports this syntax.
|
|
#endif
|
|
#else
|
|
#if __GNUC__ >= 4
|
|
#define EXPORT __attribute__ ((visibility ("default")))
|
|
#else
|
|
#define EXPORT
|
|
#endif
|
|
#endif
|
|
#define DLLEXPORT EXPORT
|
|
#define _DLLEXPORT EXPORT
|
|
#endif // EXPORTDEF_H
|