Commit 3cc23c99 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-25602 Eliminate the rest of __WIN__ in Connect

parent 7308e009
...@@ -22,16 +22,12 @@ ...@@ -22,16 +22,12 @@
/* /*
MDEV-25602 Deprecate __WIN__ symbol. MDEV-25602 Deprecate __WIN__ symbol.
Temporarily, allow inside connect engine,
until fixed in upstream.
*/ */
#ifndef connect_EXPORTS
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma deprecated("__WIN__") #pragma deprecated("__WIN__")
#elif defined (__GNUC__) #elif defined (__GNUC__)
#pragma GCC poison __WIN__ #pragma GCC poison __WIN__
#endif #endif
#endif
/* /*
InnoDB depends on some MySQL internals which other plugins should not InnoDB depends on some MySQL internals which other plugins should not
......
...@@ -72,7 +72,7 @@ IF(UNIX) ...@@ -72,7 +72,7 @@ IF(UNIX)
get_property(inc_dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES) get_property(inc_dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES)
SET(CONNECT_SOURCES ${CONNECT_SOURCES} inihandl.cpp) SET(CONNECT_SOURCES ${CONNECT_SOURCES} inihandl.cpp)
SET(IPHLPAPI_LIBRARY "") SET(IPHLPAPI_LIBRARY "")
ELSE(NOT UNIX) ELSE()
SET(CONNECT_SOURCES ${CONNECT_SOURCES} SET(CONNECT_SOURCES ${CONNECT_SOURCES}
tabwmi.cpp tabwmi.h tabmac.cpp tabmac.h macutil.cpp macutil.h) tabwmi.cpp tabwmi.h tabmac.cpp tabmac.h macutil.cpp macutil.h)
# Add exception handling to the CONNECT project) # Add exception handling to the CONNECT project)
...@@ -82,8 +82,7 @@ ELSE(NOT UNIX) ...@@ -82,8 +82,7 @@ ELSE(NOT UNIX)
# Connect does not work with clang-cl # Connect does not work with clang-cl
RETURN() RETURN()
ENDIF() ENDIF()
add_definitions(-D__WIN__) ENDIF()
ENDIF(UNIX)
# #
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
#include <mysqld.h> #include <mysqld.h>
#include <string.h> #include <string.h>
#if defined(__WIN__) #if defined(_WIN32)
#define DllExport __declspec( dllexport ) #define DllExport __declspec( dllexport )
#else // !__WIN__ #else // !_WIN32
#define DllExport #define DllExport
#endif // !__WIN__ #endif // !_WIN32
extern "C" { extern "C" {
DllExport my_bool noconst_init(UDF_INIT*, UDF_ARGS*, char*); DllExport my_bool noconst_init(UDF_INIT*, UDF_ARGS*, char*);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment