Commit 29c38396 by Bernd Edlinger Committed by Bernd Edlinger

re PR ada/64640 (Ada build failure on cygwin-32)

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
parent b9f12a01
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)
......
......@@ -106,7 +106,7 @@
extern "C" {
#endif
#if defined (__MINGW32__)
#if defined (__MINGW32__) || defined (__CYGWIN__)
#if defined (RTX)
#include <windows.h>
......
......@@ -49,9 +49,21 @@
#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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment