From: Michael Göhler Date: Thu, 5 Feb 2015 00:26:54 +0000 (+0100) Subject: workaround for cygwin WEOF, #78 X-Git-Url: https://git.danieliu.xyz/?p=smdp.git;a=commitdiff_plain;h=d8422e5afe7b7637f8412f3d27969a52d2a7f014 workaround for cygwin WEOF, #78 --- diff --git a/include/parser.h b/include/parser.h index 23cd12f..67d15d4 100644 --- a/include/parser.h +++ b/include/parser.h @@ -40,6 +40,11 @@ #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 diff --git a/src/Makefile b/src/Makefile index fd31fd8..8b75f8f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -33,6 +33,8 @@ endif ifeq ($(OS),Windows_NT) ifeq (,$(findstring CYGWIN,$(UNAME_S))) CPPFLAGS += -DWIN32 + else + CPPFLAGS += -DCYGWIN endif endif