diff options
author | Keith Kanios <keith@kanios.net> | 2011-06-05 04:11:01 -0500 |
---|---|---|
committer | Keith Kanios <keith@kanios.net> | 2011-06-05 04:11:01 -0500 |
commit | 622a7e2f1dc7c53e5fdc73ba6a6bf59808ef701c (patch) | |
tree | 789dfbedb8b41a7c60b5e81602a79d734b883ead /compiler.h | |
parent | 20306b2b8ccff6eb9c175086d4d8f430edfc0463 (diff) | |
download | nasm-path.tar.gz |
Add __PATH__ supportpath
Diffstat (limited to 'compiler.h')
-rw-r--r-- | compiler.h | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -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 */ |