Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2003-02-07 05:13:55 +0300
committerDanny Smith <dannysmith@users.sourceforge.net>2003-02-07 05:13:55 +0300
commit500ed83f45841d94552323b6b5dfb32ed7021db1 (patch)
tree982e577e3779b142e81ff0a6dbcacb9389285284
parent5a5996f93ecb967c13693d192bc1cd7df3cc330d (diff)
* include/locale.h: Include stddef.h for definition of NULL.
-rw-r--r--winsup/mingw/ChangeLog4
-rw-r--r--winsup/mingw/include/locale.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index c180100ad..5995308c2 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,7 @@
+2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/locale.h: Include stddef.h for definition of NULL.
+
2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
* include/math.h (tgamma): Correct typo in comment.
diff --git a/winsup/mingw/include/locale.h b/winsup/mingw/include/locale.h
index 06db31a3d..16fb6119a 100644
--- a/winsup/mingw/include/locale.h
+++ b/winsup/mingw/include/locale.h
@@ -51,6 +51,10 @@
#ifndef RC_INVOKED
+/* According to C89 std, NULL is defined in locale.h too. */
+#define __need_NULL
+#include <stddef.h>
+
/*
* The structure returned by 'localeconv'.
*/