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
db80f047
Commit
db80f047
authored
Jun 28, 2019
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup - do not dllexport statically built plugins
parent
6dc71d4f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
12 deletions
+20
-12
client/mysql.cc
client/mysql.cc
+4
-1
client/mysqltest.cc
client/mysqltest.cc
+4
-1
include/mysql/plugin.h
include/mysql/plugin.h
+12
-10
No files found.
client/mysql.cc
View file @
db80f047
...
...
@@ -4636,7 +4636,10 @@ static char *get_arg(char *line, get_arg_mode mode)
string, and the "dialog" plugin will free() it.
*/
MYSQL_PLUGIN_EXPORT
extern
"C"
#ifdef _MSC_VER
__declspec
(
dllexport
)
#endif
char
*
mysql_authentication_dialog_ask
(
MYSQL
*
mysql
,
int
type
,
const
char
*
prompt
,
char
*
buf
,
int
buf_len
)
...
...
client/mysqltest.cc
View file @
db80f047
...
...
@@ -11282,7 +11282,10 @@ static int setenv(const char *name, const char *value, int overwrite)
that always reads from stdin with explicit echo.
*/
MYSQL_PLUGIN_EXPORT
extern
"C"
#ifdef _MSC_VER
__declspec
(
dllexport
)
#endif
char
*
mysql_authentication_dialog_ask
(
MYSQL
*
mysql
,
int
type
,
const
char
*
prompt
,
char
*
buf
,
int
buf_len
)
...
...
include/mysql/plugin.h
View file @
db80f047
...
...
@@ -23,18 +23,20 @@
unlike other compilers, uses C++ mangling for variables not only
for functions.
*/
#if
defined(_MSC_VER)
#ifdef _
_cplusplus
#define MYSQL_
PLUGIN_EXPORT extern "C" _
_declspec(dllexport)
#if
def MYSQL_DYNAMIC_PLUGIN
#ifdef _
MSC_VER
#define MYSQL_
DLLEXPORT
_declspec(dllexport)
#else
#define MYSQL_PLUGIN_EXPORT __declspec(dllexport)
#endif
#else
/*_MSC_VER */
#ifdef __cplusplus
#define MYSQL_PLUGIN_EXPORT extern "C"
#else
#define MYSQL_PLUGIN_EXPORT
#define MYSQL_DLLEXPORT
#endif
#else
#define MYSQL_DLLEXPORT
#endif
#ifdef __cplusplus
#define MYSQL_PLUGIN_EXPORT extern "C" MYSQL_DLLEXPORT
#else
#define MYSQL_PLUGIN_EXPORT MYSQL_DLLEXPORT
#endif
#ifdef __cplusplus
...
...
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