| @@ -34,28 +34,26 @@ | | | @@ -34,28 +34,26 @@ |
34 | // Written by Benjamin Kosnik <bkoz@redhat.com> | | 34 | // Written by Benjamin Kosnik <bkoz@redhat.com> |
35 | // Modified for DragonFly by John Marino <gnugcc@marino.st> | | 35 | // Modified for DragonFly by John Marino <gnugcc@marino.st> |
36 | // Modified for NetBSD by Christos Zoulas <christos@zoulas.com> and | | 36 | // Modified for NetBSD by Christos Zoulas <christos@zoulas.com> and |
37 | // matthew green <mrg@eterna.com.au> | | 37 | // matthew green <mrg@eterna.com.au> |
38 | | | 38 | |
39 | #ifndef _GLIBCXX_CXX_LOCALE_H | | 39 | #ifndef _GLIBCXX_CXX_LOCALE_H |
40 | #define _GLIBCXX_CXX_LOCALE_H 1 | | 40 | #define _GLIBCXX_CXX_LOCALE_H 1 |
41 | | | 41 | |
42 | #pragma GCC system_header | | 42 | #pragma GCC system_header |
43 | | | 43 | |
44 | #include <clocale> | | 44 | #include <clocale> |
45 | #ifndef __NetBSD__ | | 45 | #ifndef __NetBSD__ |
46 | #include <xlocale.h> | | 46 | #include <xlocale.h> |
47 | #else | | | |
48 | #include <cstdio> | | | |
49 | #endif | | 47 | #endif |
50 | | | 48 | |
51 | #define _GLIBCXX_NUM_CATEGORIES 0 | | 49 | #define _GLIBCXX_NUM_CATEGORIES 0 |
52 | | | 50 | |
53 | namespace std _GLIBCXX_VISIBILITY(default) | | 51 | namespace std _GLIBCXX_VISIBILITY(default) |
54 | { | | 52 | { |
55 | _GLIBCXX_BEGIN_NAMESPACE_VERSION | | 53 | _GLIBCXX_BEGIN_NAMESPACE_VERSION |
56 | | | 54 | |
57 | typedef int* __c_locale; | | 55 | typedef int* __c_locale; |
58 | | | 56 | |
59 | #ifndef __NetBSD__ | | 57 | #ifndef __NetBSD__ |
60 | // Convert numeric value of type double and long double to string and | | 58 | // Convert numeric value of type double and long double to string and |
61 | // return length of string. If vsnprintf is available use it, otherwise | | 59 | // return length of string. If vsnprintf is available use it, otherwise |