summaryrefslogtreecommitdiff
path: root/compiler.h
diff options
context:
space:
mode:
authorKeith Kanios <keith@kanios.net>2011-06-05 04:11:01 -0500
committerKeith Kanios <keith@kanios.net>2011-06-05 04:11:01 -0500
commit622a7e2f1dc7c53e5fdc73ba6a6bf59808ef701c (patch)
tree789dfbedb8b41a7c60b5e81602a79d734b883ead /compiler.h
parent20306b2b8ccff6eb9c175086d4d8f430edfc0463 (diff)
downloadnasm-path.tar.gz
Add __PATH__ supportpath
Diffstat (limited to 'compiler.h')
-rw-r--r--compiler.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/compiler.h b/compiler.h
index 5805f5a9..117e8c5c 100644
--- a/compiler.h
+++ b/compiler.h
@@ -183,4 +183,43 @@ char *strsep(char **, const char *);
# define no_return void
#endif
+/*
+ * Detect DOS Host/Target
+ */
+#ifndef __DOS__
+# ifdef DOS
+# define __DOS__
+# endif
+# ifdef MSDOS
+# define __DOS__
+# endif
+# ifdef __MSDOS__
+# define __DOS__
+# endif
+# ifdef _MSDOS
+# define __DOS__
+# endif
+#endif
+
+/*
+ * Detect Windows Host/Target
+ */
+#ifndef __WINDOWS__
+# ifdef _WIN32
+# define __WINDOWS__
+# endif
+# ifdef __WIN32__
+# define __WINDOWS__
+# endif
+# ifdef _WIN64
+# define __WINDOWS__
+# endif
+# ifdef _MSC_VER
+# define __WINDOWS__
+# endif
+# ifdef __TOS_WIN__
+# define __WINDOWS__
+# endif
+#endif
+
#endif /* NASM_COMPILER_H */