summaryrefslogtreecommitdiff
path: root/screenshot.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-01-07 09:28:16 +0000
committertruelight <truelight@openttd.org>2005-01-07 09:28:16 +0000
commite58739c55963b22a345e3efb78e7c10d5646b383 (patch)
tree0cbd60c77553d87c959f3f0a76a7d63e1db39f99 /screenshot.c
parent8ed132a5b9d9de21eadc55ca87cf584b52673761 (diff)
downloadopenttd-e58739c55963b22a345e3efb78e7c10d5646b383.tar.xz
(svn r1411) -Fix: structure packing in the OS/2 version (eg, with the old loader).
Diffstat (limited to 'screenshot.c')
-rw-r--r--screenshot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/screenshot.c b/screenshot.c
index a039c3f94..26bf99fc9 100644
--- a/screenshot.c
+++ b/screenshot.c
@@ -20,7 +20,7 @@ typedef struct {
//************************************************
//*** SCREENSHOT CODE FOR WINDOWS BITMAP (.BMP)
//************************************************
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(__WATCOMC__)
#pragma pack(push, 1)
#endif
@@ -32,7 +32,7 @@ typedef struct BitmapFileHeader {
} GCC_PACK BitmapFileHeader;
assert_compile(sizeof(BitmapFileHeader) == 14);
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(__WATCOMC__)
#pragma pack(pop)
#endif