File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ endif()
3434
3535if (NOT (HAVE_CLOCALE AND HAVE_LCONV_SIZE AND HAVE_DECIMAL_POINT AND HAVE_LOCALECONV))
3636 message (WARNING "Locale functionality is not supported" )
37- add_definitions (-DNO_LOCALE_SUPPORT )
37+ add_definitions (-DJSONCPP_NO_LOCALE_SUPPORT )
3838endif ()
3939
4040SET ( JSONCPP_INCLUDE_DIR ../../include )
Original file line number Diff line number Diff line change 66#ifndef LIB_JSONCPP_JSON_TOOL_H_INCLUDED
77#define LIB_JSONCPP_JSON_TOOL_H_INCLUDED
88
9- #ifndef NO_LOCALE_SUPPORT
9+
10+ // Also support old flag NO_LOCALE_SUPPORT
11+ #ifdef NO_LOCALE_SUPPORT
12+ #define JSONCPP_NO_LOCALE_SUPPORT
13+ #endif
14+
15+ #ifndef JSONCPP_NO_LOCALE_SUPPORT
1016#include < clocale>
1117#endif
1218
1824
1925namespace Json {
2026static char getDecimalPoint () {
21- #ifdef NO_LOCALE_SUPPORT
27+ #ifdef JSONCPP_NO_LOCALE_SUPPORT
2228 return ' \0 ' ;
2329#else
2430 struct lconv * lc = localeconv ();
You can’t perform that action at this time.
0 commit comments