Rename CONF_SQL to CONF_MYSQL

This commit is contained in:
def 2021-11-28 01:31:22 +01:00
parent 9ef5849f0c
commit f5d59e8719
3 changed files with 4 additions and 4 deletions

View file

@ -2816,7 +2816,7 @@ foreach(target ${TARGETS_OWN})
target_compile_definitions(${target} PRIVATE CONF_HEADLESS_CLIENT)
endif()
if(MYSQL)
target_compile_definitions(${target} PRIVATE CONF_SQL)
target_compile_definitions(${target} PRIVATE CONF_MYSQL)
target_include_directories(${target} PRIVATE ${MYSQL_INCLUDE_DIRS})
endif()
if(AUTOUPDATE AND NOT STEAM)

View file

@ -1,6 +1,6 @@
#include "connection.h"
#if defined(CONF_SQL)
#if defined(CONF_MYSQL)
#include <mysql.h>
#include <base/tl/threading.h>

View file

@ -7,7 +7,7 @@
#include <sqlite3.h>
#if defined(CONF_SQL)
#if defined(CONF_MYSQL)
int DummyMysqlInit = (MysqlInit(), 1);
#endif
@ -457,7 +457,7 @@ TEST_P(RandomMap, UnfinishedDoesntExist)
auto testValues
{
testing::Values(CreateSqliteConnection(":memory:", true)
#if defined(CONF_SQL)
#if defined(CONF_MYSQL)
,
CreateMysqlConnection("ddnet", "record", "ddnet", "thebestpassword", "localhost", 3306, true)
#endif