2015-01-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR ada/64640
* adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
* mingw32.h: Don't include <tchar.h> under cygwin.
(_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
From-SVN: r219855
+2015-01-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ PR ada/64640
+ * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
+ * mingw32.h: Don't include <tchar.h> under cygwin.
+ (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
+
2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
* gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
extern "C" {
#endif
-#if defined (__MINGW32__)
+#if defined (__MINGW32__) || defined (__CYGWIN__)
#if defined (RTX)
#include <windows.h>
#define _WIN32_WINNT 0x0501
#endif
+#ifndef __CYGWIN__
#include <tchar.h>
+#endif
#include <windows.h>
+#ifndef _O_U8TEXT
+#define _O_U8TEXT _O_TEXT
+#endif
+#ifndef _O_U16TEXT
+#define _O_U16TEXT _O_TEXT
+#endif
+#ifndef _O_WTEXT
+#define _O_WTEXT _O_TEXT
+#endif
+
/* After including this file it is possible to use the character t as prefix
to routines. If GNAT_UNICODE_SUPPORT is defined then the unicode enabled
versions will be used. */