Merge pull request #215 from xPaw/no-version-check

Remove version checks from all include files
This commit is contained in:
Vincent Herbet 2015-03-10 01:02:05 +01:00
commit 014120e73e
18 changed files with 82 additions and 154 deletions

View File

@ -16,13 +16,9 @@
#endif
#define _cstrike_included
#if AMXX_VERSION_NUM >= 175
#pragma reqlib cstrike
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqlib cstrike
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib cstrike
#endif
#else
#pragma library cstrike
#endif
/**

View File

@ -18,13 +18,9 @@
#include <csstats>
#if AMXX_VERSION_NUM >= 175
#pragma reqclass xstats
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqclass xstats
#if !defined AMXMODX_NOAUTOLOAD
#pragma defclasslib xstats csx
#endif
#else
#pragma library csx
#endif
/**

View File

@ -34,11 +34,7 @@
// there's really no reason to anyway.
#assert !defined _sqlx_included
#if AMXX_VERSION_NUM >= 175
#pragma reqclass dbi
#else
#pragma library dbi
#endif
#pragma reqclass dbi
enum Sql
{

View File

@ -18,13 +18,9 @@
#include <dodconst>
#if AMXX_VERSION_NUM >= 175
#pragma reqlib dodfun
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqlib dodfun
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib dodfun
#endif
#else
#pragma library dodfun
#endif
/* Function is called after grenade throw */

View File

@ -19,13 +19,9 @@
#include <dodconst>
#include <dodstats>
#if AMXX_VERSION_NUM >= 175
#pragma reqclass xstats
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqclass xstats
#if !defined AMXMODX_NOAUTOLOAD
#pragma defclasslib xstats dodx
#endif
#else
#pragma library dodx
#endif
/************* Shared Natives Start ********************************/

View File

@ -19,13 +19,9 @@
#include <engine_const>
#if AMXX_VERSION_NUM >= 175
#pragma reqlib engine
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqlib engine
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib engine
#endif
#else
#pragma library engine
#endif
native traceresult(type,any:...);

View File

@ -18,13 +18,9 @@
#include <fakemeta_const>
#if AMXX_VERSION_NUM >= 175
#pragma reqlib fakemeta
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqlib fakemeta
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib fakemeta
#endif
#else
#pragma library fakemeta
#endif
/**

View File

@ -16,13 +16,9 @@
#endif
#define _fun_included
#if AMXX_VERSION_NUM >= 175
#pragma reqlib fun
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqlib fun
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib fun
#endif
#else
#pragma library fun
#endif
/* Returns 1 if receiver hears sender via voice communication. */

View File

@ -16,13 +16,9 @@
#endif
#define _geoip_included
#if AMXX_VERSION_NUM >= 175
#pragma reqlib geoip
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqlib geoip
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib geoip
#endif
#else
#pragma library geoip
#endif
/**

View File

@ -27,13 +27,9 @@
#include <ham_const>
#if AMXX_VERSION_NUM >= 175
#pragma reqlib hamsandwich
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqlib hamsandwich
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib hamsandwich
#endif
#else
#pragma library hamsandwich
#endif
/**

View File

@ -16,17 +16,11 @@
#endif
#define NS_INC
#if AMXX_VERSION_NUM >= 175
#pragma reqlib ns
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqlib ns
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib ns
#endif
#else
#pragma library ns
#endif
#include <ns_const>

View File

@ -16,13 +16,9 @@
#endif
#define _nvault_included
#if AMXX_VERSION_NUM >= 175
#pragma reqlib nvault
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqlib nvault
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib nvault
#endif
#else
#pragma library nvault
#endif
/* All timestamps are in UNIX epoch form. */

View File

@ -16,13 +16,9 @@
#endif
#define _regex_included
#if AMXX_VERSION_NUM >= 175
#pragma reqlib regex
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqlib regex
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib regex
#endif
#else
#pragma library regex
#endif

View File

@ -19,13 +19,9 @@
#endif
#define _socket_included
#if AMXX_VERSION_NUM >= 175
#pragma reqlib sockets
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqlib sockets
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib sockets
#endif
#else
#pragma library socket
#endif
// Use SOCKET_TCP for TCP Socket connections

View File

@ -19,12 +19,10 @@
//eh..
#define SQL_NumRows SQL_NumResults
#if AMXX_VERSION_NUM >= 175
#pragma reqclass sqlx
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqclass sqlx
#if !defined AMXMODX_NOAUTOLOAD
#pragma defclasslib sqlx mysql
#endif //!defined AMXMODX_NOAUTOLOAD
#endif //AMXX_VERSION_NUM
#endif
enum Handle
{

View File

@ -19,13 +19,9 @@
#include <tfcconst>
#include <tfcstats>
#if AMXX_VERSION_NUM >= 175
#pragma reqclass xstats
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqclass xstats
#if !defined AMXMODX_NOAUTOLOAD
#pragma defclasslib xstats tfcx
#endif
#else
#pragma library tfcx
#endif
/************* Shared Natives Start ********************************/

View File

@ -27,13 +27,9 @@ enum {
XMF_DEATH,
};
#if AMXX_VERSION_NUM >= 175
#pragma reqlib tsfun
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqlib tsfun
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib tsfun
#endif
#else
#pragma library tsfun
#endif
/************* Shared Natives End ********************************/

View File

@ -18,13 +18,9 @@
#include <tsstats>
#if AMXX_VERSION_NUM >= 175
#pragma reqclass xstats
#if !defined AMXMODX_NOAUTOLOAD
#pragma reqclass xstats
#if !defined AMXMODX_NOAUTOLOAD
#pragma defclasslib xstats tsx
#endif
#else
#pragma library tsx
#endif
/************* Shared Natives Start ********************************/