From 79781c138b972f553303d2b6d045ae215391a014 Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Sat, 6 Jun 2015 06:04:09 +0200 Subject: [PATCH] Attempting to fix #97 by moving TIOCSTI define for Cygwin - fix verfication needed. --- src/hstr.c | 4 ---- src/include/hstr_utils.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hstr.c b/src/hstr.c index 4a23516..fb994ac 100644 --- a/src/hstr.c +++ b/src/hstr.c @@ -36,10 +36,6 @@ #include "include/hstr_regexp.h" #include "include/hstr_utils.h" -#ifdef __CYGWIN__ - #define TIOCSTI 0x5412 -#endif - #define SELECTION_CURSOR_IN_PROMPT -1 #define SELECTION_PREFIX_MAX_LNG 512 #define CMDLINE_LNG 2048 diff --git a/src/include/hstr_utils.h b/src/include/hstr_utils.h index 9b4bb72..7a381ab 100644 --- a/src/include/hstr_utils.h +++ b/src/include/hstr_utils.h @@ -18,6 +18,10 @@ #include #include +#ifdef __CYGWIN__ + #define TIOCSTI 0x5412 +#endif + #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b))