aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2013-11-29 13:05:43 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2013-11-29 13:05:43 +0000
commit390aa0b67fbbbe2998bb040795d585b1408866d7 (patch)
treec4c877c82cbabd98fa232c53825c8542bb7fb786 /winsup/cygwin
parentfea986bdc63b9761fe8630e9d97b2da0e6ab3535 (diff)
downloadnewlib-390aa0b67fbbbe2998bb040795d585b1408866d7.zip
newlib-390aa0b67fbbbe2998bb040795d585b1408866d7.tar.gz
newlib-390aa0b67fbbbe2998bb040795d585b1408866d7.tar.bz2
* include/cygwin/stdlib.h(initstate, random, setstate, srandom) :
Prototype if not __STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/include/cygwin/stdlib.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 943d6b0..a97e03b 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/include/cygwin/stdlib.h b/winsup/cygwin/include/cygwin/stdlib.h
index 79fa2b4..fb9c924 100644
--- a/winsup/cygwin/include/cygwin/stdlib.h
+++ b/winsup/cygwin/include/cygwin/stdlib.h
@@ -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);