Fix all remaining warnings in gp2x build. The compiler is a bit more picky about the includes and feature macros.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1352 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2010-02-16 13:31:29 +00:00
parent 13865a0ade
commit 7fe8d44805
14 changed files with 39 additions and 7 deletions

4
io.c
View File

@@ -23,6 +23,8 @@
// Fonctions de lecture/ecriture file, gèrent les systèmes big-endian et
// little-endian.
#define _XOPEN_SOURCE 500
#include <SDL_endian.h>
#include <string.h>
#include <sys/stat.h>
@@ -316,7 +318,7 @@ byte Create_lock_file(const char *file_directory)
{
return -1;
}
#elseif !defined(__GP2X__) // gp2x does not defines F_TLOCK and is not really multitasking anyway
#else
// Unixy method for lock file
Lock_file_handle = open(lock_filename,O_WRONLY|O_CREAT,S_IRUSR|S_IWUSR);
if (Lock_file_handle == -1)