aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJonathan Gray2003-05-18 13:39:02 +0000
committerJonathan Gray2003-05-18 13:39:02 +0000
commitcf54a636396002c268404b8ba4f11a84fc99a127 (patch)
tree0d33f586cef902a95fa3aedd0aa986c2c2a78e4f /common
parent657c8ca2e3960346a601aaf16e7d3b4068820bed (diff)
downloadscummvm-rg350-cf54a636396002c268404b8ba4f11a84fc99a127.tar.gz
scummvm-rg350-cf54a636396002c268404b8ba4f11a84fc99a127.tar.bz2
scummvm-rg350-cf54a636396002c268404b8ba4f11a84fc99a127.zip
HAVE_CONFIG_H
svn-id: r7632
Diffstat (limited to 'common')
-rw-r--r--common/gameDetector.cpp4
-rw-r--r--common/scummsys.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp
index a45ed45d0d..2d4dafb226 100644
--- a/common/gameDetector.cpp
+++ b/common/gameDetector.cpp
@@ -27,6 +27,10 @@
#include "config-file.h"
#include "scaler.h" // Only for gfx_modes
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
+
#define CHECK_OPTION() if ((current_option != NULL) || (*s != '\0')) goto ShowHelpAndExit
#define HANDLE_OPTION() if ((*s == '\0') && (current_option == NULL)) goto ShowHelpAndExit; \
if ((*s != '\0') && (current_option != NULL)) goto ShowHelpAndExit; \
diff --git a/common/scummsys.h b/common/scummsys.h
index 3bdd10440f..be4b821139 100644
--- a/common/scummsys.h
+++ b/common/scummsys.h
@@ -25,7 +25,9 @@
#include <stdlib.h>
// TODO - use config.h, generated by configure
-//#include "config.h"
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#if defined(USE_MAD) || defined(USE_VORBIS)
#define COMPRESSED_SOUND_FILE
@@ -123,7 +125,7 @@
#define FORCEINLINE inline
#define CDECL
- #ifndef CONFIG_H
+ #ifndef HAVE_CONFIG_H
typedef unsigned char byte;
typedef unsigned char uint8;
typedef unsigned short uint16;