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
commit45284100533d14999c7dee487d05d9c0f63c7111 (patch)
tree0cbd60c77553d87c959f3f0a76a7d63e1db39f99 /screenshot.c
parent91bf7a74486dd8261cca4d696715c420acf73cd3 (diff)
downloadopenttd-45284100533d14999c7dee487d05d9c0f63c7111.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