Browse Source

public: moved compiler attributes to xash3d_types.h

pull/2/head
Alibek Omarov 3 years ago
parent
commit
9ce8edcb38
  1. 6
      common/xash3d_types.h
  2. 8
      public/crtlib.h

6
common/xash3d_types.h

@ -73,12 +73,18 @@ typedef uint64_t longtime_t;
#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

8
public/crtlib.h

@ -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…
Cancel
Save