public: moved compiler attributes to xash3d_types.h
This commit is contained in:
parent
33d79ddb24
commit
9ce8edcb38
2 changed files with 17 additions and 19 deletions
|
@ -73,12 +73,18 @@ typedef uint64_t longtime_t;
|
|||
#define EXPORT __attribute__ ((visibility ("default")))
|
||||
#define GAME_EXPORT
|
||||
#endif
|
||||
#define _format(x) __attribute__((format(printf, x, x+1)))
|
||||
#define NORETURN __attribute__((noreturn))
|
||||
#elif defined(_MSC_VER)
|
||||
#define EXPORT __declspec( dllexport )
|
||||
#define GAME_EXPORT
|
||||
#define _format(x)
|
||||
#define NORETURN
|
||||
#else
|
||||
#define EXPORT
|
||||
#define GAME_EXPORT
|
||||
#define _format(x)
|
||||
#define NORETURN
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -20,14 +20,6 @@ GNU General Public License for more details.
|
|||
#include <string.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
|
||||
enum
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue