summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-19 19:04:33 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-19 19:04:33 +0000
commit664200e644b45e52c70affa1c036d7366474ae9d (patch)
treed05be80055dae5be865e2a56c14d7f6d0ad0fa06 /src/mir_core
parent857add6ec30c59d98482c21c60e13f8c3adb89e9 (diff)
core *printf patch
git-svn-id: http://svn.miranda-ng.org/main/trunk@5750 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/json/JSONOptions.h2
-rw-r--r--src/mir_core/json/NumberToString.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/mir_core/json/JSONOptions.h b/src/mir_core/json/JSONOptions.h
index 29d588113a..d4bd343677 100644
--- a/src/mir_core/json/JSONOptions.h
+++ b/src/mir_core/json/JSONOptions.h
@@ -1,8 +1,6 @@
#ifndef JSON_OPTIONS_H
#define JSON_OPTIONS_H
-#define snprintf _snprintf
-
/**
* This file holds all of the compiling options for easy access and so
* that you don't have to remember them, or look them up all the time
diff --git a/src/mir_core/json/NumberToString.h b/src/mir_core/json/NumberToString.h
index a260f1cb5c..a706372f92 100644
--- a/src/mir_core/json/NumberToString.h
+++ b/src/mir_core/json/NumberToString.h
@@ -78,9 +78,9 @@ public:
static json_string _ftoa(T value){
json_char result[64];
#ifdef JSON_UNICODE
- swprintf(result, 63, L"%f", value);
+ mir_snwprintf(result, 63, L"%f", value);
#else
- snprintf(result, 63, "%f", value);
+ mir_snprintf(result, 63, "%f", value);
#endif
//strip the trailing zeros
for(json_char * pos = &result[0]; *pos; ++pos){