OSDN Git Service

* ssp.c (_PATH_TTY): Define as "CONOUT$" for _WIN32.
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Feb 2009 03:23:39 +0000 (03:23 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Feb 2009 03:23:39 +0000 (03:23 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143862 138bc75d-0d04-0410-961f-82ee72b054a4

libssp/ChangeLog
libssp/ssp.c

index 89fcee4..241f9e8 100644 (file)
@@ -1,3 +1,7 @@
+2009-02-02  Danny Smith  <dannysmith@users.sourcforge.net>
+
+       * ssp.c (_PATH_TTY): Define as "CONOUT$" for _WIN32.
+
 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * configure: Regenerate.
index 9576be4..99c5f38 100644 (file)
@@ -50,8 +50,14 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 # include <paths.h>
 #endif
 #ifndef _PATH_TTY
+/* Native win32 apps don't know about /dev/tty but can print directly
+   to the console using  "CONOUT$"   */
+#if defined (_WIN32) && !defined (__CYGWIN__)
+# define _PATH_TTY "CONOUT$"
+#else
 # define _PATH_TTY "/dev/tty"
 #endif
+#endif
 #ifdef HAVE_SYSLOG_H
 # include <syslog.h>
 #endif