aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/gcc_tmpnam.h
blob: 2136e6eaf133fc3a7f591d61e655c64edf70f8bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#ifndef GCC_TMPNAM
#define GCC_TMPNAM
static inline char *gcc_tmpnam(char *s)
{
  char *ret = tmpnam (s);
  // Windows sometimes prepends a backslash to denote the current directory,
  // so swallow that if it occurs
  if (ret[0] == '\\')
    ++ret;
  return ret;
}
#endif