diff options
author | Jonathan Gray | 2004-12-15 12:30:58 +0000 |
---|---|---|
committer | Jonathan Gray | 2004-12-15 12:30:58 +0000 |
commit | 2909c8fff6febf736ebddaf11fc5f40276cc3e5d (patch) | |
tree | bab3f20f5495c933f55a6ab62349dfb6abc6b5f4 /common | |
parent | 2bf74ffd35ff43c3e2f88d1f443791d2df770265 (diff) | |
download | scummvm-rg350-2909c8fff6febf736ebddaf11fc5f40276cc3e5d.tar.gz scummvm-rg350-2909c8fff6febf736ebddaf11fc5f40276cc3e5d.tar.bz2 scummvm-rg350-2909c8fff6febf736ebddaf11fc5f40276cc3e5d.zip |
- Move MAXPATHLEN includes/defines into common location
- Save files are now stored in $HOME/.scummvm/ by default if no other
save path is specified on non MacOS X unices.
svn-id: r16060
Diffstat (limited to 'common')
-rw-r--r-- | common/config-manager.cpp | 5 | ||||
-rw-r--r-- | common/stdafx.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/common/config-manager.cpp b/common/config-manager.cpp index 81e8ed15e2..bdd0fe210d 100644 --- a/common/config-manager.cpp +++ b/common/config-manager.cpp @@ -25,7 +25,6 @@ #include "common/config-manager.h" #if defined(UNIX) -#include <sys/param.h> #ifdef MACOSX #define DEFAULT_CONFIG_FILE "Library/Preferences/ScummVM Preferences" #else @@ -35,10 +34,6 @@ #define DEFAULT_CONFIG_FILE "scummvm.ini" #endif -#ifndef MAXPATHLEN -#define MAXPATHLEN 256 -#endif - #define MAXLINELEN 256 static char *ltrim(char *t) { diff --git a/common/stdafx.h b/common/stdafx.h index 2d59efe688..f59fb168d2 100644 --- a/common/stdafx.h +++ b/common/stdafx.h @@ -99,6 +99,7 @@ #if !defined(macintosh) #include <sys/types.h> #include <sys/uio.h> +#include <sys/param.h> #endif #if !defined (__BEOS__) #include <unistd.h> @@ -119,4 +120,8 @@ #endif +#ifndef MAXPATHLEN +#define MAXPATHLEN 256 +#endif + #endif |