mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 07:37:52 +00:00
engine: move EXPORT definition to xash3d_types
This commit is contained in:
parent
121c72c9e0
commit
4880ca3ca2
@ -68,9 +68,19 @@ typedef integer64 longtime_t;
|
||||
#define IsColorString( p ) ( p && *( p ) == '^' && *(( p ) + 1) && *(( p ) + 1) >= '0' && *(( p ) + 1 ) <= '9' )
|
||||
#define ColorIndex( c ) ((( c ) - '0' ) & 7 )
|
||||
|
||||
#if defined __i386__ && defined __GNUC__
|
||||
#define GAME_EXPORT __attribute__((force_align_arg_pointer))
|
||||
#if defined(__GNUC__)
|
||||
#ifdef __i386__
|
||||
#define EXPORT __attribute__ ((visibility ("default"),force_align_arg_pointer))
|
||||
#define GAME_EXPORT __attribute((force_align_arg_pointer))
|
||||
#else
|
||||
#define EXPORT __attribute__ ((visibility ("default")))
|
||||
#define GAME_EXPORT
|
||||
#endif
|
||||
#elif defined(_MSC_VER)
|
||||
#define EXPORT __declspec( dllexport )
|
||||
#define GAME_EXPORT
|
||||
#else
|
||||
#define EXPORT
|
||||
#define GAME_EXPORT
|
||||
#endif
|
||||
|
||||
|
@ -47,16 +47,8 @@ XASH SPECIFIC - sort of hack that works only in Xash3D not in GoldSrc
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <stddef.h> // size_t
|
||||
|
||||
#ifdef __i386__
|
||||
#define EXPORT __attribute__ ((visibility ("default"),force_align_arg_pointer))
|
||||
#else
|
||||
#define EXPORT __attribute__ ((visibility ("default")))
|
||||
#endif
|
||||
#else
|
||||
#include <sys/types.h> // off_t
|
||||
|
||||
#define EXPORT __declspec( dllexport )
|
||||
#endif
|
||||
|
||||
// configuration
|
||||
|
Loading…
Reference in New Issue
Block a user