ape: export mktemp() in <stdlib.h> when _BSD_SOURCE is set
This commit is contained in:
parent
b34fc2a9cf
commit
1a90e04c05
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ extern int wctomb(char *, wchar_t);
|
||||||
extern size_t mbstowcs(wchar_t *, const char *, size_t);
|
extern size_t mbstowcs(wchar_t *, const char *, size_t);
|
||||||
extern size_t wcstombs(char *, const wchar_t *, size_t);
|
extern size_t wcstombs(char *, const wchar_t *, size_t);
|
||||||
|
|
||||||
|
#ifdef _BSD_SOURCE
|
||||||
|
extern char *mktemp(char *);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _POSIX_C_SOURCE
|
#ifdef _POSIX_C_SOURCE
|
||||||
extern int mkstemp(char *template);
|
extern int mkstemp(char *template);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue