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)