mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-18 19:37:35 +02:00
Rename NO_LOCALE_SUPPORT to JSONCPP_NO_LOCALE_SUPPORT
This commit is contained in:
parent
1839f2da34
commit
5a82131033
@ -34,7 +34,7 @@ endif()
|
|||||||
|
|
||||||
if(NOT (HAVE_CLOCALE AND HAVE_LCONV_SIZE AND HAVE_DECIMAL_POINT AND HAVE_LOCALECONV))
|
if(NOT (HAVE_CLOCALE AND HAVE_LCONV_SIZE AND HAVE_DECIMAL_POINT AND HAVE_LOCALECONV))
|
||||||
message(WARNING "Locale functionality is not supported")
|
message(WARNING "Locale functionality is not supported")
|
||||||
add_definitions(-DNO_LOCALE_SUPPORT)
|
add_definitions(-DJSONCPP_NO_LOCALE_SUPPORT)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
SET( JSONCPP_INCLUDE_DIR ../../include )
|
SET( JSONCPP_INCLUDE_DIR ../../include )
|
||||||
|
@ -6,7 +6,13 @@
|
|||||||
#ifndef LIB_JSONCPP_JSON_TOOL_H_INCLUDED
|
#ifndef LIB_JSONCPP_JSON_TOOL_H_INCLUDED
|
||||||
#define LIB_JSONCPP_JSON_TOOL_H_INCLUDED
|
#define LIB_JSONCPP_JSON_TOOL_H_INCLUDED
|
||||||
|
|
||||||
#ifndef NO_LOCALE_SUPPORT
|
|
||||||
|
// Also support old flag NO_LOCALE_SUPPORT
|
||||||
|
#ifdef NO_LOCALE_SUPPORT
|
||||||
|
#define JSONCPP_NO_LOCALE_SUPPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef JSONCPP_NO_LOCALE_SUPPORT
|
||||||
#include <clocale>
|
#include <clocale>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -18,7 +24,7 @@
|
|||||||
|
|
||||||
namespace Json {
|
namespace Json {
|
||||||
static char getDecimalPoint() {
|
static char getDecimalPoint() {
|
||||||
#ifdef NO_LOCALE_SUPPORT
|
#ifdef JSONCPP_NO_LOCALE_SUPPORT
|
||||||
return '\0';
|
return '\0';
|
||||||
#else
|
#else
|
||||||
struct lconv* lc = localeconv();
|
struct lconv* lc = localeconv();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user