Fixes windows / MSVC side of r4521 for #604 (export TXML symbols with DLL interface)

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4526 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 5b3c4fa23dff76e0d23439c440293dcc1904d0fd
Former-commit-id: bfc1d689c202a41a8e907dd7a8b8c3c681bb3f9f
This commit is contained in:
pouillot 2012-02-23 14:08:44 +00:00
parent 71fb414049
commit 683c26b0dd
2 changed files with 12 additions and 2 deletions

View file

@ -32,6 +32,9 @@ xmlrole.h
xmltok_impl.h
--
'xmlparse.h' was slightly modified in order its exported symbols have a DLL interface
under Windows / MSVC (limited to the XMLPARSEAPI define).
'nametab.h' was sourced from:
http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/nametab.h?view=log&hideattic=0&pathrev=MAIN

View file

@ -10,8 +10,15 @@ See the file copying.txt for copying permission.
extern "C" {
#endif
#ifndef XMLPARSEAPI
#define XMLPARSEAPI /* as nothing */
// DLL exported symbols declarator for Windows.
#ifdef WIN32
# ifdef TXML_DLL
# define XMLPARSEAPI __declspec(dllexport)
# else
# define XMLPARSEAPI __declspec(dllimport)
# endif
#else
# define XMLPARSEAPI
#endif
typedef void *XML_Parser;