Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
3cc23c99
Commit
3cc23c99
authored
Aug 04, 2021
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-25602 Eliminate the rest of __WIN__ in Connect
parent
7308e009
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
include/my_global.h
include/my_global.h
+0
-4
storage/connect/CMakeLists.txt
storage/connect/CMakeLists.txt
+2
-3
storage/connect/noconst.c
storage/connect/noconst.c
+3
-3
No files found.
include/my_global.h
View file @
3cc23c99
...
...
@@ -22,16 +22,12 @@
/*
MDEV-25602 Deprecate __WIN__ symbol.
Temporarily, allow inside connect engine,
until fixed in upstream.
*/
#ifndef connect_EXPORTS
#ifdef _MSC_VER
#pragma deprecated("__WIN__")
#elif defined (__GNUC__)
#pragma GCC poison __WIN__
#endif
#endif
/*
InnoDB depends on some MySQL internals which other plugins should not
...
...
storage/connect/CMakeLists.txt
View file @
3cc23c99
...
...
@@ -72,7 +72,7 @@ IF(UNIX)
get_property
(
inc_dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
inihandl.cpp
)
SET
(
IPHLPAPI_LIBRARY
""
)
ELSE
(
NOT UNIX
)
ELSE
()
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
tabwmi.cpp tabwmi.h tabmac.cpp tabmac.h macutil.cpp macutil.h
)
# Add exception handling to the CONNECT project)
...
...
@@ -82,8 +82,7 @@ ELSE(NOT UNIX)
# Connect does not work with clang-cl
RETURN
()
ENDIF
()
add_definitions
(
-D__WIN__
)
ENDIF
(
UNIX
)
ENDIF
()
#
...
...
storage/connect/noconst.c
View file @
3cc23c99
...
...
@@ -5,11 +5,11 @@
#include <mysqld.h>
#include <string.h>
#if defined(_
_WIN__
)
#if defined(_
WIN32
)
#define DllExport __declspec( dllexport )
#else // !_
_WIN__
#else // !_
WIN32
#define DllExport
#endif // !_
_WIN__
#endif // !_
WIN32
extern
"C"
{
DllExport
my_bool
noconst_init
(
UDF_INIT
*
,
UDF_ARGS
*
,
char
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment