diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2010-11-16 17:23:10 +0000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2010-11-17 07:23:13 +1000 |
commit | acb85448a17708101ed2a7aa8fda71ab0794877a (patch) | |
tree | 17b5d0bcc9ba724b3f8fd7480790d8619723c9ef /jim-win32.c | |
parent | 31d09164ecc9581d1767a12c6d614d70daa232e4 (diff) | |
download | jimtcl-acb85448a17708101ed2a7aa8fda71ab0794877a.zip jimtcl-acb85448a17708101ed2a7aa8fda71ab0794877a.tar.gz jimtcl-acb85448a17708101ed2a7aa8fda71ab0794877a.tar.bz2 |
build: fix cygwin build issue
Avoid windows.h on cygwin
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'jim-win32.c')
-rw-r--r-- | jim-win32.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/jim-win32.c b/jim-win32.c index 2925fb5..2a6e1b9 100644 --- a/jim-win32.c +++ b/jim-win32.c @@ -19,6 +19,15 @@ */ #include <jim.h> + +/* Apparently windows.h and cygwin don't mix, but we seem to get + * away with it here. Use at your own risk under cygwin + */ +#if defined(__CYGWIN__) +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#endif + #include <shellapi.h> #include <lmcons.h> #include <psapi.h> |