locale.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the w64 mingw-runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER within this package.
  5. */
  6. #ifndef _INC_LOCALE
  7. #define _INC_LOCALE
  8. #include <_mingw.h>
  9. #pragma pack(push,_CRT_PACKING)
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. #ifndef NULL
  14. #ifdef __cplusplus
  15. #define NULL 0
  16. #else
  17. #define NULL ((void *)0)
  18. #endif
  19. #endif
  20. #define LC_ALL 0
  21. #define LC_COLLATE 1
  22. #define LC_CTYPE 2
  23. #define LC_MONETARY 3
  24. #define LC_NUMERIC 4
  25. #define LC_TIME 5
  26. #define LC_MIN LC_ALL
  27. #define LC_MAX LC_TIME
  28. #ifndef _LCONV_DEFINED
  29. #define _LCONV_DEFINED
  30. struct lconv {
  31. char *decimal_point;
  32. char *thousands_sep;
  33. char *grouping;
  34. char *int_curr_symbol;
  35. char *currency_symbol;
  36. char *mon_decimal_point;
  37. char *mon_thousands_sep;
  38. char *mon_grouping;
  39. char *positive_sign;
  40. char *negative_sign;
  41. char int_frac_digits;
  42. char frac_digits;
  43. char p_cs_precedes;
  44. char p_sep_by_space;
  45. char n_cs_precedes;
  46. char n_sep_by_space;
  47. char p_sign_posn;
  48. char n_sign_posn;
  49. };
  50. #endif
  51. #ifndef _CONFIG_LOCALE_SWT
  52. #define _CONFIG_LOCALE_SWT
  53. #define _ENABLE_PER_THREAD_LOCALE 0x1
  54. #define _DISABLE_PER_THREAD_LOCALE 0x2
  55. #define _ENABLE_PER_THREAD_LOCALE_GLOBAL 0x10
  56. #define _DISABLE_PER_THREAD_LOCALE_GLOBAL 0x20
  57. #define _ENABLE_PER_THREAD_LOCALE_NEW 0x100
  58. #define _DISABLE_PER_THREAD_LOCALE_NEW 0x200
  59. #endif
  60. int __cdecl _configthreadlocale(int _Flag);
  61. char *__cdecl setlocale(int _Category,const char *_Locale);
  62. _CRTIMP struct lconv *__cdecl localeconv(void);
  63. _locale_t __cdecl _get_current_locale(void);
  64. _locale_t __cdecl _create_locale(int _Category,const char *_Locale);
  65. void __cdecl _free_locale(_locale_t _Locale);
  66. _locale_t __cdecl __get_current_locale(void);
  67. _locale_t __cdecl __create_locale(int _Category,const char *_Locale);
  68. void __cdecl __free_locale(_locale_t _Locale);
  69. #ifndef _WLOCALE_DEFINED
  70. #define _WLOCALE_DEFINED
  71. _CRTIMP wchar_t *__cdecl _wsetlocale(int _Category,const wchar_t *_Locale);
  72. #endif
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76. #pragma pack(pop)
  77. #endif