mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Fix linux compiling
This commit is contained in:
parent
e4c1d0e7c8
commit
708a6ecba6
7 changed files with 14 additions and 13 deletions
|
@ -12,7 +12,7 @@
|
|||
#include "config.h"
|
||||
|
||||
#include <string>
|
||||
#include <io.h>
|
||||
//#include <io.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
#include "engine.h"
|
||||
|
||||
#include <io.h>
|
||||
#include <fcntl.h>
|
||||
//#include <io.h>
|
||||
//#include <fcntl.h>
|
||||
#include <malloc.h>
|
||||
|
||||
// static int globhiz, globloz, globhihit, globlohit;
|
||||
|
|
|
@ -3409,7 +3409,7 @@ int Query(short nLines, short nKeys, ...)
|
|||
{
|
||||
char *str = va_arg(args, char*);
|
||||
strcpy(strings[i], str);
|
||||
strupr(strings[i]);
|
||||
Bstrupr(strings[i]);
|
||||
|
||||
int strWidth = MyGetStringWidth(strings[i]);
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
|
||||
#include "save.h"
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <io.h>
|
||||
//#include <fcntl.h>
|
||||
//#include <sys/stat.h>
|
||||
//#include <io.h>
|
||||
#include "engine.h"
|
||||
|
||||
int savegame(int nSlot)
|
||||
|
|
|
@ -466,7 +466,7 @@ int LoadSound(const char *sound)
|
|||
int i;
|
||||
for (i = 0; i < nSoundCount; i++)
|
||||
{
|
||||
if (!strnicmp(szSoundName[i], sound, kMaxSoundNameLen))
|
||||
if (!Bstrncasecmp(szSoundName[i], sound, kMaxSoundNameLen))
|
||||
return i;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,13 +21,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
//-------------------------------------------------------------------------
|
||||
|
||||
#include "build.h"
|
||||
#include "cmdline.h"
|
||||
#include "common.h"
|
||||
#include "common_game.h"
|
||||
#include "compat.h"
|
||||
#include "keyboard.h"
|
||||
#include "control.h"
|
||||
#include "config.h"
|
||||
#include "exhumed.h"
|
||||
#include "dynamicgtk.h"
|
||||
#include "game.h"
|
||||
#include "grpscan.h"
|
||||
#include "gtkpixdata.h"
|
||||
|
||||
|
|
|
@ -699,8 +699,9 @@ void DrawStatus()
|
|||
|
||||
if (bCoordinates)
|
||||
{
|
||||
char *cFPS = itoa(lastfps, numberBuf, 10);
|
||||
printext(xdim - 20, nViewTop, cFPS, kTile159, -1);
|
||||
sprintf(numberBuf, "%i", lastfps);
|
||||
// char *cFPS = itoa(lastfps, numberBuf, 10);
|
||||
printext(xdim - 20, nViewTop, numberBuf, kTile159, -1);
|
||||
}
|
||||
|
||||
// draw ammo count
|
||||
|
|
Loading…
Reference in a new issue