Patch from begasus to allow building under haiku and beos. The program is crashing when you launch it (segmentation violation).
I'm not sure the way to get the program directory we use is ok for beos, but the official way of doing that is using C++ code. Maybe it's time to switch to some more unix way to store the config files... This should also fix watcom build (very untested as i'm using mingw to cross compile windows builds now) Also added begasus to the credits screen. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@325 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
14
aide.c
14
aide.c
@@ -45,9 +45,13 @@
|
||||
#endif
|
||||
#else
|
||||
#ifndef __amigaos4__
|
||||
#ifndef __BEOS__
|
||||
#ifndef __HAIKU__
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
extern char SVNRevision[];
|
||||
|
||||
@@ -317,7 +321,7 @@ void Bouton_Stats(void)
|
||||
struct statfs Informations_Disque;
|
||||
uint64_t Taille = 0;
|
||||
#else
|
||||
#ifdef __amigaos4__
|
||||
#if defined(__amigaos4__)||defined(__BEOS__)||defined(__HAIKU__)
|
||||
uint64_t Taille = 0;
|
||||
#else
|
||||
unsigned __int64 Taille;
|
||||
@@ -368,11 +372,11 @@ void Bouton_Stats(void)
|
||||
#ifdef __linux__
|
||||
statfs(Principal_Repertoire_courant,&Informations_Disque);
|
||||
Taille=Informations_Disque.f_bfree * Informations_Disque.f_bsize;
|
||||
#else
|
||||
#ifdef __amigaos4__
|
||||
#else
|
||||
GetDiskFreeSpaceEx(Principal_Repertoire_courant,&tailleU,NULL,NULL);
|
||||
Taille = tailleU.QuadPart;
|
||||
#if defined(__amigaos4__)||defined(__BEOS__)||defined(__HAIKU__)
|
||||
#else
|
||||
GetDiskFreeSpaceEx(Principal_Repertoire_courant,&tailleU,NULL,NULL);
|
||||
Taille = tailleU.QuadPart;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user