adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam nor tmpnam...

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.

From-SVN: r138474
This commit is contained in:
Jose Ruiz 2008-08-01 09:56:32 +02:00 committed by Arnaud Charlet
parent d628c01538
commit e6d44fcae2
1 changed files with 5 additions and 1 deletions

View File

@ -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;