From e63d0c916bf36c1164143d05cc57a50b47827e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Thu, 16 Feb 2012 15:54:16 +0200 Subject: [PATCH] Fix link error on Windows. error LNK2001: unresolved external symbol _debug_sync_C_callback_ptr --- storage/innodb_plugin/row/row0ins.c | 12 +++++++++--- storage/innodb_plugin/row/row0upd.c | 12 +++++++++--- 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