including sys/param.h causes several conflicts with symbol names we use, so don't do it

svn-id: r15320
This commit is contained in:
Max Horn 2004-09-28 11:29:32 +00:00
parent ae73d1a4ee
commit 4fed56e8a6

View File

@ -33,9 +33,14 @@
#include "sound/mididrv.h"
#if (!( defined(__DC__) || defined(__GP32__)) && !defined(_MSC_VER))
#include <sys/param.h>
#include <unistd.h>
#endif
#if !(defined(MAXPATHLEN))
#define MAXPATHLEN 1024
#endif
namespace GUI {
// TODO - allow changing options for:
@ -427,9 +432,6 @@ void GlobalOptionsDialog::open() {
_savePath->setLabel(dir);
} else {
// Default to the current directory...
#if !(defined(MAXPATHLEN))
#define MAXPATHLEN 1024
#endif
char buf[MAXPATHLEN];
getcwd(buf, sizeof(buf));
_savePath->setLabel(buf);