summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fl_utf8.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/fl_utf8.cxx b/src/fl_utf8.cxx
index 8aead90c4..fe67f3954 100644
--- a/src/fl_utf8.cxx
+++ b/src/fl_utf8.cxx
@@ -21,22 +21,25 @@
#include <FL/filename.H>
#include <stdarg.h>
-#if defined(WIN32) && !defined(__CYGWIN__)
+#if defined(WIN32) || defined(__CYGWIN__)
# include <ctype.h>
# include <io.h>
# include <windows.h>
# include <winbase.h>
# include <process.h>
-#ifdef __CYGWIN__
-#include <wchar.h>
-#else
-#include <direct.h>
-#endif
+# ifdef __CYGWIN__
+# include <wchar.h>
+# include <sys/types.h>
+# include <sys/stat.h>
+# include <fcntl.h>
+# include <unistd.h>
+# else
+# include <direct.h>
+# endif
extern "C" {
int XUtf8Tolower(int ucs);
unsigned short XUtf8IsNonSpacing(unsigned int ucs);
};
-
#elif defined(__APPLE__)
# include <stdio.h>
# include <time.h>