summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-05-25 22:38:43 +0300
committerunknown <monty@mysql.com>2004-05-25 22:38:43 +0300
commitbc60ead25c528a1974cfa04eff02c5f0dcb7e039 (patch)
treed27b01dadebef6d18d8fa83696915fe9610aa089 /include
parent81a0700406b1f85b29dd8711293d0e78eb3383a8 (diff)
parent4d18192717aa5f0bbda9c0fea539e9fcc606df46 (diff)
downloadmariadb-git-bc60ead25c528a1974cfa04eff02c5f0dcb7e039.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/tmp/skr99/mysql-4.0
Diffstat (limited to 'include')
-rw-r--r--include/mysql_com.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/mysql_com.h b/include/mysql_com.h
index e183a0ed423..c81c90dec22 100644
--- a/include/mysql_com.h
+++ b/include/mysql_com.h
@@ -34,6 +34,12 @@
#define MYSQL_SERVICENAME "MySQL"
#endif /* __WIN__ */
+#if defined(__WIN__) && !defined(MYSQL_SERVER) && !defined(MYSQL_CLIENT) && !defined(EMBEDDED_LIBRARY)
+#define dll_import_spec __declspec( dllimport )
+#else
+#define dll_import_spec
+#endif
+
enum enum_server_command {
COM_SLEEP, COM_QUIT, COM_INIT_DB, COM_QUERY, COM_FIELD_LIST,
COM_CREATE_DB, COM_DROP_DB, COM_REFRESH, COM_SHUTDOWN, COM_STATISTICS,
@@ -223,8 +229,8 @@ typedef struct st_udf_init
extern "C" {
#endif
-extern unsigned long max_allowed_packet;
-extern unsigned long net_buffer_length;
+dll_import_spec extern unsigned long max_allowed_packet;
+dll_import_spec extern unsigned long net_buffer_length;
void randominit(struct rand_struct *,unsigned long seed1,
unsigned long seed2);