workaround for cygwin WEOF, #78
authorMichael Göhler <somebody.here@gmx.de>
Thu, 5 Feb 2015 00:26:54 +0000 (01:26 +0100)
committerMichael Göhler <somebody.here@gmx.de>
Sun, 8 Feb 2015 16:48:02 +0000 (17:48 +0100)
include/parser.h
src/Makefile

index 23cd12f..67d15d4 100644 (file)
 #include "markdown.h"
 #include "cstack.h"
 
+#if defined( CYGWIN )
+#undef WEOF
+#define WEOF (0xffff)
+#endif // defined( CYGWIN )
+
 #define EXPAND_TABS 4
 #define CODE_INDENT 4
 #define UNORDERED_LIST_MAX_LEVEL 3
index fd31fd8..8b75f8f 100644 (file)
@@ -33,6 +33,8 @@ endif
 ifeq ($(OS),Windows_NT)
        ifeq (,$(findstring CYGWIN,$(UNAME_S)))
                CPPFLAGS += -DWIN32
+       else
+               CPPFLAGS += -DCYGWIN
        endif
 endif