aboutsummaryrefslogtreecommitdiff
path: root/winsup/mingw
diff options
context:
space:
mode:
authorEarnie Boyd <earnie@users.sf.net>2001-01-16 14:51:03 +0000
committerEarnie Boyd <earnie@users.sf.net>2001-01-16 14:51:03 +0000
commit49a5f0809b0d6a1a2773f724258da817e81f3f2e (patch)
tree7a7731b82e40995a71e0496ba5147de3c179816a /winsup/mingw
parentda2515fc49b8ba9b8c9911078a3561aa1a153d17 (diff)
downloadnewlib-49a5f0809b0d6a1a2773f724258da817e81f3f2e.zip
newlib-49a5f0809b0d6a1a2773f724258da817e81f3f2e.tar.gz
newlib-49a5f0809b0d6a1a2773f724258da817e81f3f2e.tar.bz2
* include/locale.h: Apply Danny Smith patch 101834
2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz> (LC_MIN) Add definition. (LC_MAX) ditto. (_wsetlocale) Add prototype.
Diffstat (limited to 'winsup/mingw')
-rw-r--r--winsup/mingw/ChangeLog9
-rw-r--r--winsup/mingw/include/locale.h9
2 files changed, 18 insertions, 0 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index 5cb3f55..6ae5991 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,12 @@
+
+Tue Jan 16 09:41:41 2001 Earnie Boyd <earnie@users.sourceforge.net>
+
+ * include/locale.h: Apply Danny Smith patch 101834
+ 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
+ (LC_MIN) Add definition.
+ (LC_MAX) ditto.
+ (_wsetlocale) Add prototype.
+
2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
* Makefile.in: eliminate the need for RUNTIME and CRT_ID.
diff --git a/winsup/mingw/include/locale.h b/winsup/mingw/include/locale.h
index 4f75124..3527bfb 100644
--- a/winsup/mingw/include/locale.h
+++ b/winsup/mingw/include/locale.h
@@ -46,6 +46,8 @@
#define LC_MONETARY 3
#define LC_NUMERIC 4
#define LC_TIME 5
+#define LC_MIN LC_ALL
+#define LC_MAX LC_TIME
#ifndef RC_INVOKED
@@ -81,6 +83,13 @@ extern "C" {
char* setlocale (int, const char*);
struct lconv* localeconv (void);
+#ifndef _WLOCALE_DEFINED /* also declared in wchar.h */
+# define __need_wchar_t
+# include <stddef.h>
+ wchar_t* _wsetlocale(int, const wchar_t*);
+# define _WLOCALE_DEFINED
+#endif /* ndef _WLOCALE_DEFINED */
+
#ifdef __cplusplus
}
#endif