forked from OSchip/llvm-project
Fix platform_support.h's get_temp_file_name() on Newlib under __STRICT_ANSI__
llvm-svn: 224057
This commit is contained in:
parent
0a14c0ec9d
commit
963bdd7c0a
|
@ -48,6 +48,13 @@
|
||||||
#include <unistd.h> // close
|
#include <unistd.h> // close
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_NEWLIB_VERSION) && defined(__STRICT_ANSI__)
|
||||||
|
// Newlib provies this, but in the header it's under __STRICT_ANSI__
|
||||||
|
extern "C" {
|
||||||
|
int mkstemp(char*);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
inline
|
inline
|
||||||
std::string
|
std::string
|
||||||
get_temp_file_name()
|
get_temp_file_name()
|
||||||
|
|
Loading…
Reference in New Issue