summaryrefslogtreecommitdiff
path: root/storage/connect/plgdbutl.cpp
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-02-01 14:55:11 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-02-01 14:55:11 +0400
commitdde8622c205cd3cac7c4a0e17b3b4f3ab808fda2 (patch)
treec0198793f8be67f128ccc62cb6c0e830086a2317 /storage/connect/plgdbutl.cpp
parent733ab86c254f880042e0a8cddbb2c2d1257db4d6 (diff)
downloadmariadb-git-dde8622c205cd3cac7c4a0e17b3b4f3ab808fda2.tar.gz
More XML related definitions are now more friendly:
- LIBXML2_SUPPORT is defined if LibXml2 is found - DOMDOC_SUPPORT is defined if msxml is found - XML_SUPPORT is defined if either of them are found NOXML2 was removed modified: storage/connect/CMakeLists.txt storage/connect/global.h storage/connect/ha_connect.cc storage/connect/plgdbutl.cpp storage/connect/plgxml.cpp
Diffstat (limited to 'storage/connect/plgdbutl.cpp')
-rw-r--r--storage/connect/plgdbutl.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/storage/connect/plgdbutl.cpp b/storage/connect/plgdbutl.cpp
index d61e4b656c2..6bbee84e348 100644
--- a/storage/connect/plgdbutl.cpp
+++ b/storage/connect/plgdbutl.cpp
@@ -119,14 +119,14 @@ MBLOCK Nmblk = {NULL, false, 0, false, NULL}; // Used to init MBLOCK's
bool PlugEvalLike(PGLOBAL, LPCSTR, LPCSTR, bool);
bool EvalLikePattern(LPCSTR, LPCSTR);
void PlugConvertConstant(PGLOBAL, void* &, short&);
-#if defined(XML_SUPPORT)
-#if defined(WIN32) && defined(DOMDOC_SUPPORT)
+
+#ifdef DOMDOC_SUPPORT
void CloseXMLFile(PGLOBAL, PFBLOCK, bool);
-#endif // WIN32
-#if !defined(NOXML2)
+#endif // DOMDOC_SUPPORT
+
+#ifdef LIBXML2_SUPPORT
void CloseXML2File(PGLOBAL, PFBLOCK, bool);
-#endif // !NOXML2
-#endif // XML_SUPPORT
+#endif // LIBXML2_SUPPORT
/**************************************************************************/
/* Utility for external callers (such as XDB) */
@@ -808,18 +808,16 @@ int PlugCloseFile(PGLOBAL g, PFBLOCK fp, bool all)
fp->Mode = MODE_ANY;
fp->Count = 0;
break;
-#if defined(XML_SUPPORT)
-#if defined(WIN32) && defined(DOMDOC_SUPPORT)
+#ifdef defined(DOMDOC_SUPPORT)
case TYPE_FB_XML:
CloseXMLFile(g, fp, all);
break;
-#endif // WIN32
-#if !defined(NOXML2)
+#endif // DOMDOC_SUPPORT
+#ifdef LIBXML2_SUPPORT
case TYPE_FB_XML2:
CloseXML2File(g, fp, all);
break;
-#endif // !NOXML2
-#endif // XML_SUPPORT
+#endif // LIBXML2_SUPPORT
default:
rc = RC_FX;
} // endswitch Type