From 78cfc787ad1f21350b3768677d62dd3ce08e26ee Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 12 Sep 2008 07:55:47 +0000 Subject: [PATCH] Fixed linux build with new makefile git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@136 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- Makefile.dep | 2 +- linux.h | 5 +++++ loadsave.c | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.dep b/Makefile.dep index 6da92de8..4b1c50b7 100644 --- a/Makefile.dep +++ b/Makefile.dep @@ -1,7 +1,7 @@ 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 \ 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 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 diff --git a/linux.h b/linux.h index e46d0ed1..9e9580d9 100644 --- a/linux.h +++ b/linux.h @@ -1,3 +1,6 @@ +#pragma once +#ifdef __linux__ + 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 */ @@ -10,3 +13,5 @@ int filelength(int); void itoa(int source,char* dest, int longueur); /* Integer TO Ascii */ + +#endif diff --git a/loadsave.c b/loadsave.c index ad792d30..3d1d5e65 100644 --- a/loadsave.c +++ b/loadsave.c @@ -18,6 +18,7 @@ #include "op_c.h" #include "boutons.h" #include "erreurs.h" +#include "linux.h" #if SDL_BYTEORDER == SDL_LIL_ENDIAN #define endian_magic(x) (x)