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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user