X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Futil-pre.qh;h=1537c75fb5a16eef9112909da8349985f774324d;hb=165d542813201a21cb6152ea5d22454e43e117c7;hp=3f4c3e57f4f8f2095eafb3fa41f31415572d1d20;hpb=dc25d591f448c6ed191fcf9452d65b87d7a26e90;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/util-pre.qh b/qcsrc/common/util-pre.qh index 3f4c3e57f..1537c75fb 100644 --- a/qcsrc/common/util-pre.qh +++ b/qcsrc/common/util-pre.qh @@ -1,6 +1,34 @@ +#ifndef UTIL_PRE_H +#define UTIL_PRE_H + #ifndef NOCOMPAT -//# define WORKAROUND_XON010 -//# define COMPAT_XON050_ENGINE -# define COMPAT_NO_MOD_IS_XONOTIC -# define COMPAT_XON060_DONTCRASH_CHECKPVS + #define COMPAT_NO_MOD_IS_XONOTIC +#endif + +#ifndef QCC_SUPPORT_ACCUMULATE + #ifdef GMQCC + #define QCC_SUPPORT_ACCUMULATE + #endif +#endif + +#ifndef QCC_SUPPORT_NIL + #ifdef GMQCC + #define QCC_SUPPORT_NIL + #endif +#endif + +#ifndef QCC_SUPPORT_INT + #define int float + + #define stoi(s) stof(s) + #define itos(s) ftos(s) +#endif + +#ifndef QCC_SUPPORT_BOOL + #define bool float + + // Boolean Constants + const bool true = 1; + const bool false = 0; +#endif #endif