Fix build on gp2x.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1351 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues 2010-02-16 12:56:24 +00:00
parent 4219ca839d
commit 13865a0ade
4 changed files with 9 additions and 1 deletions

View File

@ -36,6 +36,7 @@
#include "sdlscreen.h"
#include "brush.h"
// Calcul de redimensionnement du pinceau pour éviter les débordements de
// l'écran et de l'image
void Compute_clipped_dimensions(short * x,short * y,short * width,short * height)

View File

@ -37,6 +37,10 @@
#include "sdlscreen.h"
#include "windows.h"
#if defined(__VBCC__)||defined(__GP2X__)
#define M_PI 3.141592653589793238462643
#endif
/// Simulates clicking the "Draw" button.
void Return_to_draw_mode(void)

View File

@ -51,6 +51,9 @@
#ifdef __VBCC__
#define __attribute__(x)
#endif
#if defined(__VBCC__)||defined(__GP2X__)
#define M_PI 3.141592653589793238462643
#endif

2
io.c
View File

@ -316,7 +316,7 @@ byte Create_lock_file(const char *file_directory)
{
return -1;
}
#else
#elseif !defined(__GP2X__) // gp2x does not defines F_TLOCK and is not really multitasking anyway
// Unixy method for lock file
Lock_file_handle = open(lock_filename,O_WRONLY|O_CREAT,S_IRUSR|S_IWUSR);
if (Lock_file_handle == -1)