OSDN Git Service

* ssp.c (_PATH_TTY): Define as "CONOUT$" for _WIN32.
[pf3gnuchains/gcc-fork.git] / libssp / ssp.c
index 6c56536..99c5f38 100644 (file)
@@ -24,8 +24,8 @@ for more details.
 
 You should have received a copy of the GNU General Public License
 along with GCC; see the file COPYING.  If not, write to the Free
-Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.  */
+Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301, USA.  */
 
 /* As a special exception, if you link this library with files compiled with
    GCC to produce an executable, this does not cause the resulting executable
@@ -50,8 +50,14 @@ Software Foundation, 59 Temple Place - Suite 330, 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