mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
link libmariadb instead of libmysql if headers indicate MariaDB
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
|
||||
#include "Poco/Foundation.h"
|
||||
#include <mysql/mysql.h>
|
||||
|
||||
|
||||
//
|
||||
@@ -54,7 +55,11 @@
|
||||
#if !defined(MySQL_EXPORTS)
|
||||
#pragma comment(lib, "PocoDataMySQL" POCO_LIB_SUFFIX)
|
||||
#endif
|
||||
#pragma comment(lib, "libmysql")
|
||||
#if defined(LIBMARIADB)
|
||||
#pragma comment(lib, "libmariadb")
|
||||
#else
|
||||
#pragma comment(lib, "libmysql")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@@ -12,6 +12,11 @@
|
||||
//
|
||||
|
||||
|
||||
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#endif
|
||||
|
||||
|
||||
#include "Poco/Data/MySQL/MySQLException.h"
|
||||
#include <mysql/mysql.h>
|
||||
#include <stdio.h>
|
||||
|
Reference in New Issue
Block a user