libroot/locale: Consolidate some headers.

No behavioral change intended.
This commit is contained in:
Augustin Cavalier
2026-01-15 18:48:09 -05:00
parent fa4502cdb5
commit 2d20dfef26
9 changed files with 21 additions and 86 deletions
@@ -2,8 +2,11 @@
* Copyright 2010, Oliver Tappe, zooey@hirschkaefer.de.
* Distributed under the terms of the MIT License.
*/
#ifndef _POSIX_CTYPE_H
#define _POSIX_CTYPE_H
#ifndef _LOCALE_DATA_H
#define _LOCALE_DATA_H
#include <locale.h>
namespace BPrivate {
@@ -22,9 +25,15 @@ extern const unsigned short gPosixClassInfo[384];
extern const int gPosixToLowerMap[384];
extern const int gPosixToUpperMap[384];
extern const char* gPosixLanginfo[];
extern const struct lc_time_t gPosixLCTimeInfo;
extern struct lconv gPosixLocaleConv;
} // namespace Libroot
} // namespace BPrivate
#endif // _POSIX_CTYPE_H
#endif // _LOCALE_DATA_H
@@ -1,20 +0,0 @@
/*
* Copyright 2010, Oliver Tappe, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef _POSIX_LANGINFO_H
#define _POSIX_LANGINFO_H
namespace BPrivate {
namespace Libroot {
extern const char* gPosixLanginfo[];
} // namespace Libroot
} // namespace BPrivate
#endif // _POSIX_LANGINFO_H
@@ -1,23 +0,0 @@
/*
* Copyright 2010, Oliver Tappe, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef _POSIX_LOCALE_CONV_H
#define _POSIX_LOCALE_CONV_H
#include <locale.h>
namespace BPrivate {
namespace Libroot {
extern struct lconv gPosixLocaleConv;
} // namespace Libroot
} // namespace BPrivate
#endif // _POSIX_LOCALE_CONV_H
@@ -1,23 +0,0 @@
/*
* Copyright 2010, Oliver Tappe, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef _POSIX_LC_TIME_INFO_H
#define _POSIX_LC_TIME_INFO_H
#include <timelocal.h>
namespace BPrivate {
namespace Libroot {
extern const struct lc_time_t gPosixLCTimeInfo;
} // namespace Libroot
} // namespace BPrivate
#endif // _POSIX_LC_TIME_INFO_H