Skip to content

Commit 7463a92

Browse files
committed
Implement USE_TO_STRING_HACK
1 parent 5f0a3fc commit 7463a92

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ else()
1313
# -Wall -Wextra -Werror -pedantic -g -std=c++1y")
1414
endif()
1515

16+
if(DEFINED USE_TO_STRING_HACK)
17+
add_definitions(-DUSE_TO_STRING_HACK)
18+
endif()
19+
1620
set(SOURCES
1721
"main.cpp"
1822
"bot_easy_api.cpp"

bot_easy_api.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <curl/curl.h>
2+
#ifdef USE_TO_STRING_HACK
23
#include "to_string.h" // work around fucked android ndk bug
4+
#endif
35
#include <stdio.h>
46
#include <string>
57
#include "writefn_data.h"

main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
#include <memory>
77
#include <fstream>
88
#include <signal.h>
9+
10+
#ifdef USE_TO_STRING_HACK
911
#include "to_string.h"
12+
#endif
13+
1014
#include "json.hpp"
1115
#include "botkey.h"
1216
#include "const_str.h"

0 commit comments

Comments
 (0)