File tree 2 files changed +9
-3
lines changed 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ endif()
34
34
35
35
if (NOT (HAVE_CLOCALE AND HAVE_LCONV_SIZE AND HAVE_DECIMAL_POINT AND HAVE_LOCALECONV))
36
36
message (WARNING "Locale functionality is not supported" )
37
- add_definitions (-DNO_LOCALE_SUPPORT )
37
+ add_definitions (-DJSONCPP_NO_LOCALE_SUPPORT )
38
38
endif ()
39
39
40
40
SET ( JSONCPP_INCLUDE_DIR ../../include )
Original file line number Diff line number Diff line change 6
6
#ifndef LIB_JSONCPP_JSON_TOOL_H_INCLUDED
7
7
#define LIB_JSONCPP_JSON_TOOL_H_INCLUDED
8
8
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
10
16
#include < clocale>
11
17
#endif
12
18
18
24
19
25
namespace Json {
20
26
static char getDecimalPoint () {
21
- #ifdef NO_LOCALE_SUPPORT
27
+ #ifdef JSONCPP_NO_LOCALE_SUPPORT
22
28
return ' \0 ' ;
23
29
#else
24
30
struct lconv * lc = localeconv ();
You can’t perform that action at this time.
0 commit comments