diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-01 07:56:32 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-01 07:56:32 +0000 |
commit | 72772d8938bcf9ecf1cbfa3937f87542ce80596c (patch) | |
tree | 2f54d71ce4317e164ecc0c541834b4525c6722e2 /gcc | |
parent | 81dd70cde5278a1bea58c1b46ab8c490506c3543 (diff) | |
download | gcc-72772d8938bcf9ecf1cbfa3937f87542ce80596c.tar.gz |
2008-08-01 Jose Ruiz <ruiz@adacore.com>
* adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138474 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/adaint.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 29f649aa096..c13135788a6 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -982,7 +982,11 @@ __gnat_named_file_length (char *name) void __gnat_tmp_name (char *tmp_filename) { -#ifdef __MINGW32__ +#ifdef RTX + /* RTX in RTSS mode does not support tempnam nor tmpnam */ + strcpy (tmp_filename, "c:\\WINDOWS\\Temp\\gnat-XXXXXX"); + +#elif defined (__MINGW32__) { char *pname; |