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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user