From 2a528657ad9f728b4865e5647d751af0060f5b2f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 5 Apr 2006 00:54:10 +0000 Subject: 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 --- common/scummsys.h | 15 +++++++++++++-- 1 file 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; -- cgit v1.2.3