From 97e093a361d7235e414807bdad2c41cc4d75f804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ricles=20Lopes=20Machado?= Date: Mon, 18 May 2015 14:31:05 -0300 Subject: [PATCH] fix compile error on android --- src/lib_json/json_writer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib_json/json_writer.cpp b/src/lib_json/json_writer.cpp index ba07b07..3be34d9 100644 --- a/src/lib_json/json_writer.cpp +++ b/src/lib_json/json_writer.cpp @@ -29,6 +29,8 @@ #if defined(_MSC_VER) && _MSC_VER < 1500 // VC++ 8.0 and below #define snprintf _snprintf +#elif defined(__ANDROID__) +#define snprintf snprintf #elif __cplusplus >= 201103L #define snprintf std::snprintf #endif