diff options
author | Max Horn | 2006-04-05 00:54:10 +0000 |
---|---|---|
committer | Max Horn | 2006-04-05 00:54:10 +0000 |
commit | 2a528657ad9f728b4865e5647d751af0060f5b2f (patch) | |
tree | bb49f386d80c3b40ef54e4bbaa83ffdccd3b5d2b | |
parent | 0bdc3b0738a46b02fe93b0d684549499b32b4272 (diff) | |
download | scummvm-rg350-2a528657ad9f728b4865e5647d751af0060f5b2f.tar.gz scummvm-rg350-2a528657ad9f728b4865e5647d751af0060f5b2f.tar.bz2 scummvm-rg350-2a528657ad9f728b4865e5647d751af0060f5b2f.zip |
Added SCUMMVM_DONT_DEFINE_TYPES so that (a) porters can still override our typedefs if they must, and (b) my image of evil-scummsys.h-changer is strengthened
svn-id: r21624
-rw-r--r-- | common/scummsys.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/common/scummsys.h b/common/scummsys.h index 947d9d5d51..e8bdb9ddac 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -55,10 +55,21 @@ // SCUMMVM_USE_LONG_INT // - Define this if your port needs to use 'long' for the int32 datatype // (i.e. an integer with exactly 32 bits). +// SCUMMVM_DONT_DEFINE_TYPES +// - Define this if you need to provide your own typedefs, e.g. because your +// system headers conflict with our typenames, or because you have odd +// type requirements. // SMALL_SCREEN_DEVICE // - ... // ... +// We define all types in config.h, so we don't want to typedef those types +// here again! +#ifdef HAVE_CONFIG_H +#define SCUMMVM_DONT_DEFINE_TYPES +#endif + + #if defined(_MSC_VER) && !defined(__SYMBIAN32__) #define scumm_stricmp stricmp @@ -357,9 +368,9 @@ // -// Typedef our system types unless they were already set by config.h +// Typedef our system types unless SCUMMVM_DONT_DEFINE_TYPES is set. // -#ifndef HAVE_CONFIG_H +#ifndef SCUMMVM_DONT_DEFINE_TYPES typedef unsigned char byte; typedef unsigned char uint8; |