1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Make possible to use clang on Windows (clang-cl)

-DWITH_ASAN can be used as well now, on x64

Fix many clang-cl warnings.
This commit is contained in:
Vladislav Vaintroub
2018-02-20 21:17:36 +00:00
parent 9d97e6010e
commit 56e7b7eaed
75 changed files with 215 additions and 232 deletions

View File

@ -112,6 +112,11 @@
**
*/
#ifdef _WIN32
/* Silence warning about deprecated functions , gethostbyname etc*/
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#endif
#ifdef STANDARD
/* STANDARD is defined, don't use any mysql functions */
#include <stdlib.h>
@ -139,14 +144,6 @@ typedef long long longlong;
#include <mysql.h>
#include <ctype.h>
#ifdef _WIN32
/* inet_aton needs winsock library */
#pragma comment(lib, "ws2_32")
#if _MSC_VER
/* Silence warning about deprecated functions , gethostbyname etc*/
#pragma warning(disable : 4996)
#endif
#endif
#ifdef HAVE_DLOPEN