aboutsummaryrefslogtreecommitdiff
path: root/libiberty/choose-temp.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2000-02-22 16:14:35 +0000
committerIan Lance Taylor <ian@airs.com>2000-02-22 16:14:35 +0000
commit0c0a36a40386d288fe8d6d86efc2b178ef7eb465 (patch)
treeb3724fb2dc3695a219f27800279c7e3041e2131b /libiberty/choose-temp.c
parentabd8680d6efd97e7ba848a6392ee3ad72be18cd0 (diff)
downloadgdb-0c0a36a40386d288fe8d6d86efc2b178ef7eb465.zip
gdb-0c0a36a40386d288fe8d6d86efc2b178ef7eb465.tar.gz
gdb-0c0a36a40386d288fe8d6d86efc2b178ef7eb465.tar.bz2
merge with libiberty from egcs 2000-02-22
Diffstat (limited to 'libiberty/choose-temp.c')
-rw-r--r--libiberty/choose-temp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libiberty/choose-temp.c b/libiberty/choose-temp.c
index 7aae318..826d818 100644
--- a/libiberty/choose-temp.c
+++ b/libiberty/choose-temp.c
@@ -19,9 +19,6 @@ Boston, MA 02111-1307, USA. */
/* This file exports two functions: choose_temp_base and make_temp_file. */
-/* This file lives in at least two places: libiberty and gcc.
- Don't change one without the other. */
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -51,7 +48,7 @@ Boston, MA 02111-1307, USA. */
extern int mkstemps ();
#ifndef IN_GCC
-#if defined (__MSDOS__) || defined (_WIN32)
+#if defined (__MSDOS__) || (defined (_WIN32) && ! defined (__CYGWIN__) && ! defined (_UWIN))
#define DIR_SEPARATOR '\\'
#endif
#endif
@@ -148,7 +145,7 @@ choose_temp_base ()
char *
make_temp_file (suffix)
- char *suffix;
+ const char *suffix;
{
char *base = 0;
char *temp_filename;