summaryrefslogtreecommitdiff
path: root/storage/innodb_plugin
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@oracle.com>2012-02-16 15:54:16 +0200
committerMarko Mäkelä <marko.makela@oracle.com>2012-02-16 15:54:16 +0200
commite63d0c916bf36c1164143d05cc57a50b47827e2b (patch)
treebbe40b6ee2476ae8f31f22b83dd3f28867f04596 /storage/innodb_plugin
parent2f755bdf660797628c892919854adbc42cdbf16d (diff)
downloadmariadb-git-e63d0c916bf36c1164143d05cc57a50b47827e2b.tar.gz
Fix link error on Windows.
error LNK2001: unresolved external symbol _debug_sync_C_callback_ptr
Diffstat (limited to 'storage/innodb_plugin')
-rw-r--r--storage/innodb_plugin/row/row0ins.c12
-rw-r--r--storage/innodb_plugin/row/row0upd.c12
2 files changed, 18 insertions, 6 deletions
diff --git a/storage/innodb_plugin/row/row0ins.c b/storage/innodb_plugin/row/row0ins.c
index 939791aa19f..56d1c1a7b88 100644
--- a/storage/innodb_plugin/row/row0ins.c
+++ b/storage/innodb_plugin/row/row0ins.c
@@ -23,9 +23,15 @@ Insert into a table
Created 4/20/1996 Heikki Tuuri
*******************************************************/
-#include "my_global.h" /* HAVE_* */
-#include "m_string.h" /* for my_sys.h */
-#include "my_sys.h" /* DEBUG_SYNC_C */
+#ifdef __WIN__
+/* error LNK2001: unresolved external symbol _debug_sync_C_callback_ptr */
+# define DEBUG_SYNC_C(dummy) ((void) 0)
+#else
+# include "my_global.h" /* HAVE_* */
+# include "m_string.h" /* for my_sys.h */
+# include "my_sys.h" /* DEBUG_SYNC_C */
+#endif
+
#include "row0ins.h"
#ifdef UNIV_NONINL
diff --git a/storage/innodb_plugin/row/row0upd.c b/storage/innodb_plugin/row/row0upd.c
index f03c120d6fb..acd72ead42f 100644
--- a/storage/innodb_plugin/row/row0upd.c
+++ b/storage/innodb_plugin/row/row0upd.c
@@ -23,9 +23,15 @@ Update of a row
Created 12/27/1996 Heikki Tuuri
*******************************************************/
-#include "my_global.h" /* HAVE_* */
-#include "m_string.h" /* for my_sys.h */
-#include "my_sys.h" /* DEBUG_SYNC_C */
+#ifdef __WIN__
+/* error LNK2001: unresolved external symbol _debug_sync_C_callback_ptr */
+# define DEBUG_SYNC_C(dummy) ((void) 0)
+#else
+# include "my_global.h" /* HAVE_* */
+# include "m_string.h" /* for my_sys.h */
+# include "my_sys.h" /* DEBUG_SYNC_C */
+#endif
+
#include "row0upd.h"
#ifdef UNIV_NONINL