server: include correct stdlib headers for standard functions

This commit is contained in:
Alibek Omarov 2023-09-06 05:14:02 +03:00
parent 15b17af683
commit 98ce99e822
6 changed files with 7 additions and 2 deletions

View file

@ -23,6 +23,7 @@
*/ */
#include <ctype.h> // isprint, isspace
#include "extdll.h" #include "extdll.h"
#include "util.h" #include "util.h"
#include "cbase.h" #include "cbase.h"

View file

@ -15,6 +15,7 @@
// //
// multiplay_gamerules.cpp // multiplay_gamerules.cpp
// //
#include <ctype.h> // isspace, isalnum
#include "extdll.h" #include "extdll.h"
#include "util.h" #include "util.h"
#include "cbase.h" #include "cbase.h"
@ -1935,4 +1936,4 @@ void CHalfLifeMultiplay::SetLaserBeam( int entindex, BOOL value )
void CHalfLifeMultiplay::SendLaserInfo() void CHalfLifeMultiplay::SendLaserInfo()
{ {
} }

View file

@ -319,4 +319,4 @@ void CMortar::ShootTimed( EVARS *pevOwner, Vector vecStart, float time )
UTIL_SetOrigin( pMortar->pev, tr.vecEndPos ); UTIL_SetOrigin( pMortar->pev, tr.vecEndPos );
} }
#endif #endif

View file

@ -42,6 +42,7 @@ LINK_ENTITY_TO_CLASS( info_node, CNodeEnt );
LINK_ENTITY_TO_CLASS( info_node_air, CNodeEnt ); LINK_ENTITY_TO_CLASS( info_node_air, CNodeEnt );
#ifdef __linux__ #ifdef __linux__
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h>
#define CreateDirectory(p, n) mkdir(p, 0777) #define CreateDirectory(p, n) mkdir(p, 0777)
#endif #endif
//========================================================= //=========================================================

View file

@ -16,6 +16,7 @@
// sound.cpp // sound.cpp
//========================================================= //=========================================================
#include <ctype.h> // isalpha, isdigit, isspace...
#include "extdll.h" #include "extdll.h"
#include "util.h" #include "util.h"
#include "cbase.h" #include "cbase.h"

View file

@ -22,6 +22,7 @@
#ifndef ENGINECALLBACK_H #ifndef ENGINECALLBACK_H
#include "enginecallback.h" #include "enginecallback.h"
#endif #endif
#include <string.h>
inline void MESSAGE_BEGIN( int msg_dest, int msg_type, const float *pOrigin, entvars_t *ent ); // implementation later in this file inline void MESSAGE_BEGIN( int msg_dest, int msg_type, const float *pOrigin, entvars_t *ent ); // implementation later in this file
extern globalvars_t *gpGlobals; extern globalvars_t *gpGlobals;