Fixed linux build with new makefile

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@136 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues 2008-09-12 07:55:47 +00:00
parent e81b943732
commit 78cfc787ad
3 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,7 @@
main.o: main.c const.h struct.h global.h loadsave.h graph.h divers.h \ main.o: main.c const.h struct.h global.h loadsave.h graph.h divers.h \
init.h boutons.h moteur.h pages.h files.h sdlscreen.h erreurs.h \ init.h boutons.h moteur.h pages.h files.h sdlscreen.h erreurs.h \
readini.h saveini.h readini.h saveini.h
init.o: init.c const.h struct.h global.h loadsave.h modesvdo.h graph.h \ init.o: init.c const.h struct.h global.h loadsave.h graph.h \
boutons.h palette.h aide.h operatio.h divers.h erreurs.h boutons.h palette.h aide.h operatio.h divers.h erreurs.h
graph.o: graph.c sdlscreen.h struct.h const.h graph.h divers.h moteur.h \ graph.o: graph.c sdlscreen.h struct.h const.h graph.h divers.h moteur.h \
boutons.h pages.h global.h loadsave.h erreurs.h boutons.h pages.h global.h loadsave.h erreurs.h

View File

@ -1,3 +1,6 @@
#pragma once
#ifdef __linux__
void _splitpath(char* Buffer, char* Chemin, char* Nom_Fichier); void _splitpath(char* Buffer, char* Chemin, char* Nom_Fichier);
/* Sépare dans la chaîne passée dans Buffer le chemin d'accès du nom de fichier */ /* Sépare dans la chaîne passée dans Buffer le chemin d'accès du nom de fichier */
@ -10,3 +13,5 @@ int filelength(int);
void itoa(int source,char* dest, int longueur); void itoa(int source,char* dest, int longueur);
/* Integer TO Ascii */ /* Integer TO Ascii */
#endif

View File

@ -18,6 +18,7 @@
#include "op_c.h" #include "op_c.h"
#include "boutons.h" #include "boutons.h"
#include "erreurs.h" #include "erreurs.h"
#include "linux.h"
#if SDL_BYTEORDER == SDL_LIL_ENDIAN #if SDL_BYTEORDER == SDL_LIL_ENDIAN
#define endian_magic(x) (x) #define endian_magic(x) (x)