* include/cygwin/stdlib.h(initstate, random, setstate, srandom) :

Prototype if not __STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.
This commit is contained in:
Jon TURNEY 2013-11-29 13:05:43 +00:00
parent fea986bdc6
commit 390aa0b67f
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-11-13 Jon TURNEY <jon.turney@dronecode.org.uk>
* include/cygwin/stdlib.h(initstate, random, setstate, srandom) :
Prototype if not __STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.
2013-11-28 Alexey Pavlov <alexpux@gmail.com>
* include/glob.h: Fix invalid use of 'restrict' error.

View File

@ -30,10 +30,14 @@ void setprogname (const char *);
#ifndef __STRICT_ANSI__
char *canonicalize_file_name (const char *);
int unsetenv (const char *);
#endif /*__STRICT_ANSI__*/
#if !defined(__STRICT_ANSI__) || (_XOPEN_SOURCE >= 500) || (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED))
char *initstate (unsigned seed, char *state, size_t size);
long random (void);
char *setstate (const char *state);
void srandom (unsigned);
#endif
#ifndef __STRICT_ANSI__
char *ptsname (int);
int ptsname_r(int, char *, size_t);
int getpt (void);