Fix platform_support.h's get_temp_file_name() on Newlib under __STRICT_ANSI__
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@224057 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cddec8a9dd
commit
2f2daa1436
@ -48,6 +48,13 @@
|
||||
#include <unistd.h> // close
|
||||
#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
|
||||
std::string
|
||||
get_temp_file_name()
|
||||
|
Loading…
x
Reference in New Issue
Block a user