Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit badb788

Browse files
committed
[[ LibXml291 ]] Tweaks to make revXML compile with libxml 2.9.1 on Windows.
1 parent 07e8bc2 commit badb788

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

revxml/revxml.vcproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
/>
3939
<Tool
4040
Name="VCCLCompilerTool"
41-
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;REVXML_EXPORTS"
41+
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;REVXML_EXPORTS;LIBXML_STATIC_FOR_DLL"
4242
MinimalRebuild="true"
4343
BasicRuntimeChecks="3"
4444
UsePrecompiledHeader="0"
@@ -55,6 +55,7 @@
5555
/>
5656
<Tool
5757
Name="VCLinkerTool"
58+
AdditionalDependencies="wsock32.lib"
5859
LinkIncremental="2"
5960
GenerateDebugInformation="true"
6061
SubSystem="2"
@@ -109,7 +110,7 @@
109110
/>
110111
<Tool
111112
Name="VCCLCompilerTool"
112-
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;REVXML_EXPORTS"
113+
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;REVXML_EXPORTS;LIBXML_STATIC_FOR_DLL"
113114
UsePrecompiledHeader="0"
114115
DebugInformationFormat="3"
115116
/>
@@ -124,6 +125,7 @@
124125
/>
125126
<Tool
126127
Name="VCLinkerTool"
128+
AdditionalDependencies="wsock32.lib"
127129
LinkIncremental="1"
128130
GenerateDebugInformation="true"
129131
SubSystem="2"
@@ -164,7 +166,7 @@
164166
/>
165167
<ProjectReference
166168
ReferencedProjectIdentifier="{8E776621-28FF-4FBF-A2F3-F4198EE9F7B7}"
167-
RelativePathToProject=".\libxml\libxml.vcproj"
169+
RelativePathToProject=".\thirdparty\libxml\libxml.vcproj"
168170
/>
169171
</References>
170172
<Files>

revxml/src/revxml.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2756,7 +2756,7 @@ EXTERNAL_END_DECLARATIONS
27562756
extern void REVXML_INIT();
27572757
extern void REVXML_QUIT();
27582758

2759-
extern "C" BOOL WINAPI xmlDllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
2759+
extern "C" BOOL XMLCALL xmlDllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
27602760

27612761
BOOL WINAPI DllMain(HINSTANCE tInstance, DWORD dwReason, LPVOID lpReserved)
27622762
{

thirdparty

0 commit comments

Comments
 (0)