aboutsummaryrefslogtreecommitdiffstats
path: root/memdisk/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'memdisk/compiler.h')
-rw-r--r--memdisk/compiler.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/memdisk/compiler.h b/memdisk/compiler.h
new file mode 100644
index 00000000..d1b03e06
--- /dev/null
+++ b/memdisk/compiler.h
@@ -0,0 +1,9 @@
+
+#ifdef __WATCOMC__
+# define MEMDISK_PACKED_PREFIX _Packed
+# define MEMDISK_PACKED_POSTFIX
+#else
+/* Assume GNU C for now */
+# define MEMDISK_PACKED_PREFIX
+# define MEMDISK_PACKED_POSTFIX __attribute__((packed))
+#endif