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,14 +16,10 @@
#endif #endif
#define _cstrike_included #define _cstrike_included
#if AMXX_VERSION_NUM >= 175
#pragma reqlib cstrike #pragma reqlib cstrike
#if !defined AMXMODX_NOAUTOLOAD #if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib cstrike #pragma loadlib cstrike
#endif #endif
#else
#pragma library cstrike
#endif
/** /**
* @section Team and team model constants, used by cs_[get|set]_user_team(). * @section Team and team model constants, used by cs_[get|set]_user_team().

View File

@ -18,14 +18,10 @@
#include <csstats> #include <csstats>
#if AMXX_VERSION_NUM >= 175
#pragma reqclass xstats #pragma reqclass xstats
#if !defined AMXMODX_NOAUTOLOAD #if !defined AMXMODX_NOAUTOLOAD
#pragma defclasslib xstats csx #pragma defclasslib xstats csx
#endif #endif
#else
#pragma library csx
#endif
/** /**
* Map objective flags returned by get_map_objectives(). * Map objective flags returned by get_map_objectives().

View File

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

View File

@ -18,14 +18,10 @@
#include <dodconst> #include <dodconst>
#if AMXX_VERSION_NUM >= 175
#pragma reqlib dodfun #pragma reqlib dodfun
#if !defined AMXMODX_NOAUTOLOAD #if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib dodfun #pragma loadlib dodfun
#endif #endif
#else
#pragma library dodfun
#endif
/* Function is called after grenade throw */ /* Function is called after grenade throw */
forward grenade_throw(index,greindex,wId); forward grenade_throw(index,greindex,wId);

View File

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

View File

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

View File

@ -18,14 +18,10 @@
#include <fakemeta_const> #include <fakemeta_const>
#if AMXX_VERSION_NUM >= 175
#pragma reqlib fakemeta #pragma reqlib fakemeta
#if !defined AMXMODX_NOAUTOLOAD #if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib fakemeta #pragma loadlib fakemeta
#endif #endif
#else
#pragma library fakemeta
#endif
/** /**
* Returns entvar data from an entity. Use the pev_* enum (in fakemeta_const.inc) to specify which data you want retrieved. * Returns entvar data from an entity. Use the pev_* enum (in fakemeta_const.inc) to specify which data you want retrieved.

View File

@ -16,14 +16,10 @@
#endif #endif
#define _fun_included #define _fun_included
#if AMXX_VERSION_NUM >= 175
#pragma reqlib fun #pragma reqlib fun
#if !defined AMXMODX_NOAUTOLOAD #if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib fun #pragma loadlib fun
#endif #endif
#else
#pragma library fun
#endif
/* Returns 1 if receiver hears sender via voice communication. */ /* Returns 1 if receiver hears sender via voice communication. */
native get_client_listen(receiver, sender); native get_client_listen(receiver, sender);

View File

@ -16,14 +16,10 @@
#endif #endif
#define _geoip_included #define _geoip_included
#if AMXX_VERSION_NUM >= 175
#pragma reqlib geoip #pragma reqlib geoip
#if !defined AMXMODX_NOAUTOLOAD #if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib geoip #pragma loadlib geoip
#endif #endif
#else
#pragma library geoip
#endif
/** /**
* @global IP addresses passed to these natives can contain ports, the ports will be ignored. * @global IP addresses passed to these natives can contain ports, the ports will be ignored.

View File

@ -27,14 +27,10 @@
#include <ham_const> #include <ham_const>
#if AMXX_VERSION_NUM >= 175
#pragma reqlib hamsandwich #pragma reqlib hamsandwich
#if !defined AMXMODX_NOAUTOLOAD #if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib hamsandwich #pragma loadlib hamsandwich
#endif #endif
#else
#pragma library hamsandwich
#endif
/** /**
* Hooks the virtual table for the specified entity class. * Hooks the virtual table for the specified entity class.

View File

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

View File

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

View File

@ -16,14 +16,10 @@
#endif #endif
#define _regex_included #define _regex_included
#if AMXX_VERSION_NUM >= 175
#pragma reqlib regex #pragma reqlib regex
#if !defined AMXMODX_NOAUTOLOAD #if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib regex #pragma loadlib regex
#endif #endif
#else
#pragma library regex
#endif
enum Regex enum Regex

View File

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

View File

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

View File

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

View File

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

View File

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