Fix build on gp2x.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1351 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
4219ca839d
commit
13865a0ade
1
brush.c
1
brush.c
@ -36,6 +36,7 @@
|
|||||||
#include "sdlscreen.h"
|
#include "sdlscreen.h"
|
||||||
#include "brush.h"
|
#include "brush.h"
|
||||||
|
|
||||||
|
|
||||||
// Calcul de redimensionnement du pinceau pour éviter les débordements de
|
// Calcul de redimensionnement du pinceau pour éviter les débordements de
|
||||||
// l'écran et de l'image
|
// l'écran et de l'image
|
||||||
void Compute_clipped_dimensions(short * x,short * y,short * width,short * height)
|
void Compute_clipped_dimensions(short * x,short * y,short * width,short * height)
|
||||||
|
|||||||
@ -37,6 +37,10 @@
|
|||||||
#include "sdlscreen.h"
|
#include "sdlscreen.h"
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
|
|
||||||
|
#if defined(__VBCC__)||defined(__GP2X__)
|
||||||
|
#define M_PI 3.141592653589793238462643
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/// Simulates clicking the "Draw" button.
|
/// Simulates clicking the "Draw" button.
|
||||||
void Return_to_draw_mode(void)
|
void Return_to_draw_mode(void)
|
||||||
|
|||||||
3
graph.c
3
graph.c
@ -51,6 +51,9 @@
|
|||||||
|
|
||||||
#ifdef __VBCC__
|
#ifdef __VBCC__
|
||||||
#define __attribute__(x)
|
#define __attribute__(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__VBCC__)||defined(__GP2X__)
|
||||||
#define M_PI 3.141592653589793238462643
|
#define M_PI 3.141592653589793238462643
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
2
io.c
2
io.c
@ -316,7 +316,7 @@ byte Create_lock_file(const char *file_directory)
|
|||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#else
|
#elseif !defined(__GP2X__) // gp2x does not defines F_TLOCK and is not really multitasking anyway
|
||||||
// Unixy method for lock file
|
// Unixy method for lock file
|
||||||
Lock_file_handle = open(lock_filename,O_WRONLY|O_CREAT,S_IRUSR|S_IWUSR);
|
Lock_file_handle = open(lock_filename,O_WRONLY|O_CREAT,S_IRUSR|S_IWUSR);
|
||||||
if (Lock_file_handle == -1)
|
if (Lock_file_handle == -1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user