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:
parent
71fb414049
commit
683c26b0dd
2 changed files with 12 additions and 2 deletions
|
@ -32,6 +32,9 @@ xmlrole.h
|
||||||
xmltok_impl.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:
|
'nametab.h' was sourced from:
|
||||||
http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/nametab.h?view=log&hideattic=0&pathrev=MAIN
|
http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/nametab.h?view=log&hideattic=0&pathrev=MAIN
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,15 @@ See the file copying.txt for copying permission.
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef XMLPARSEAPI
|
// DLL exported symbols declarator for Windows.
|
||||||
#define XMLPARSEAPI /* as nothing */
|
#ifdef WIN32
|
||||||
|
# ifdef TXML_DLL
|
||||||
|
# define XMLPARSEAPI __declspec(dllexport)
|
||||||
|
# else
|
||||||
|
# define XMLPARSEAPI __declspec(dllimport)
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define XMLPARSEAPI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef void *XML_Parser;
|
typedef void *XML_Parser;
|
||||||
|
|
Loading…
Reference in a new issue