From 5e71f197737816c83f7cb97a7473a1eed43895a7 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 19 Apr 2015 20:52:47 +1000 Subject: [PATCH] Declare `stoi` and `itos` when QCC_SUPPORT_INT --- qcsrc/common/util-pre.qh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/util-pre.qh b/qcsrc/common/util-pre.qh index 022f687215..f246200378 100644 --- a/qcsrc/common/util-pre.qh +++ b/qcsrc/common/util-pre.qh @@ -22,7 +22,11 @@ #define stoi(s) stof(s) #define stob(s) stof(s) - #define itos(s) ftos(s) + #define itos(i) ftos(i) +#else + #define stoi(s) ((int) stof(s)) + #define stob(s) ((bool) stof(s)) + #define itos(i) ftos(i) #endif #ifndef QCC_SUPPORT_BOOL -- 2.39.2