| delorie.com/archives/browse.cgi | search |
| Message-ID: | <005001c0906a$f1b6dc40$4b4e893e@oemcomputer> |
| From: | "Stephen Silver" <djgpp AT argentum DOT freeserve DOT co DOT uk> |
| To: | "DJGPP Workers" <djgpp-workers AT delorie DOT com> |
| Subject: | locale.h - namespace std patch |
| Date: | Tue, 6 Feb 2001 18:30:53 -0000 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 4.72.3110.1 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
| Reply-To: | djgpp-workers AT delorie DOT com |
Here's the locale.h patch.
I've just seen Tanes Sriviroolchai's announcement of a DJGPP port
of STLport. I may delay posting the remaining patches until I've
had a chance to test them with STLport.
Stephen
*** include/locale.h.old Sun Aug 31 16:43:14 1997
--- include/locale.h Mon Feb 5 18:59:50 2001
***************
*** 5,8 ****
--- 5,9 ----
#ifdef __cplusplus
+ namespace std {
extern "C" {
#endif
***************
*** 55,59 ****
--- 56,72 ----
#ifdef __cplusplus
}
+ }
#endif
#endif /* !__dj_include_locale_h_ */
+
+
+ #if defined(__cplusplus) && !defined(__dj_ENFORCE_ANSI_FREESTANDING)
+ #ifndef __dj_via_cplusplus_header_
+
+ using std::lconv;
+ using std::localeconv;
+ using std::setlocale;
+
+ #endif /* !__dj_via_cplusplus_header_ */
+ #endif /* __cplusplus && !__dj_ENFORCE_ANSI_FREESTANDING */
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |