mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-14 17:18:05 +00:00
public: moved compiler attributes to xash3d_types.h
This commit is contained in:
parent
33d79ddb24
commit
9ce8edcb38
@ -66,19 +66,25 @@ typedef uint64_t longtime_t;
|
|||||||
#define ColorIndex( c ) ((( c ) - '0' ) & 7 )
|
#define ColorIndex( c ) ((( c ) - '0' ) & 7 )
|
||||||
|
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
#define EXPORT __attribute__ ((visibility ("default"),force_align_arg_pointer))
|
#define EXPORT __attribute__ ((visibility ("default"),force_align_arg_pointer))
|
||||||
#define GAME_EXPORT __attribute((force_align_arg_pointer))
|
#define GAME_EXPORT __attribute((force_align_arg_pointer))
|
||||||
#else
|
#else
|
||||||
#define EXPORT __attribute__ ((visibility ("default")))
|
#define EXPORT __attribute__ ((visibility ("default")))
|
||||||
#define GAME_EXPORT
|
#define GAME_EXPORT
|
||||||
#endif
|
#endif
|
||||||
|
#define _format(x) __attribute__((format(printf, x, x+1)))
|
||||||
|
#define NORETURN __attribute__((noreturn))
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#define EXPORT __declspec( dllexport )
|
#define EXPORT __declspec( dllexport )
|
||||||
#define GAME_EXPORT
|
#define GAME_EXPORT
|
||||||
|
#define _format(x)
|
||||||
|
#define NORETURN
|
||||||
#else
|
#else
|
||||||
#define EXPORT
|
#define EXPORT
|
||||||
#define GAME_EXPORT
|
#define GAME_EXPORT
|
||||||
|
#define _format(x)
|
||||||
|
#define NORETURN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,14 +20,6 @@ GNU General Public License for more details.
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
|
|
||||||
#ifdef __GNUC__
|
|
||||||
#define _format(x) __attribute__((format(printf, x, x+1)))
|
|
||||||
#define NORETURN __attribute__((noreturn))
|
|
||||||
#else
|
|
||||||
#define _format(x)
|
|
||||||
#define NORETURN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// timestamp modes
|
// timestamp modes
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user