From adfccca351f948651827a0641758366b181bce94 Mon Sep 17 00:00:00 2001 From: Christian Kroll Date: Sat, 28 Aug 2010 15:13:19 +0000 Subject: [PATCH] Cygwin workaround should only be applied if we compile with Cygwin --- scrolltext/scrolltext3.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scrolltext/scrolltext3.c b/scrolltext/scrolltext3.c index 797d467..cc4dbf0 100644 --- a/scrolltext/scrolltext3.c +++ b/scrolltext/scrolltext3.c @@ -15,7 +15,10 @@ #include "font_arial8.h" // #include "font_small6.h" // #include "font_uni53.h" -#define strtok_r(a, b, c) strtok((a), (b)) + +#ifdef __CYGWIN__ + #define strtok_r(a, b, c) strtok((a), (b)) +#endif #define MAX_FONTS 1 font fonts[MAX_FONTS];