Fix platform_support.h's get_temp_file_name() on Newlib under __STRICT_ANSI__

llvm-svn: 224057
This commit is contained in:
Jonathan Roelofs 2014-12-11 20:56:40 +00:00
parent 0a14c0ec9d
commit 963bdd7c0a
1 changed files with 7 additions and 0 deletions

View File

@ -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()