Using normal MySQL headers

This commit is contained in:
WolverinDEV 2020-03-02 15:42:52 +01:00
parent f99490447f
commit 3661056d2a
2 changed files with 6 additions and 0 deletions

View File

@ -196,6 +196,7 @@ target_link_libraries(TeaSpeak PUBLIC
threadpool::static jsoncpp_lib
tomcrypt::static
tommath::static
dl
)
target_compile_options(TeaSpeak PRIVATE "-Wall" "-DHAVE_MYSQL_H")

View File

@ -7,6 +7,11 @@
#include <memory>
#include <utility>
#ifndef CR_CONNECTION_ERROR
#define CR_CONNECTION_ERROR (2002)
#define CR_SERVER_GONE_ERROR (2006)
#define CR_SERVER_LOST (2013)
#endif
using namespace std;
using namespace sql;
using namespace sql::mysql;