summaryrefslogtreecommitdiff
path: root/xmlwf
diff options
context:
space:
mode:
Diffstat (limited to 'xmlwf')
-rwxr-xr-xxmlwf/.gitignore6
-rw-r--r--xmlwf/readfilemap.c5
-rw-r--r--xmlwf/xmlwf.vcxproj4
3 files changed, 6 insertions, 9 deletions
diff --git a/xmlwf/.gitignore b/xmlwf/.gitignore
deleted file mode 100755
index 90464b41..00000000
--- a/xmlwf/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-Debug
-Release
-xmlwf.plg
-Makefile
-xmlwf
-.libs
diff --git a/xmlwf/readfilemap.c b/xmlwf/readfilemap.c
index 3cc4f761..4c4780bd 100644
--- a/xmlwf/readfilemap.c
+++ b/xmlwf/readfilemap.c
@@ -43,13 +43,16 @@
/* Function "read": */
#if defined(_MSC_VER)
+# include <io.h>
/* https://msdn.microsoft.com/en-us/library/wyssk1bs(v=vs.100).aspx */
# define _EXPAT_read _read
# define _EXPAT_read_count_t int
+# define _EXPAT_read_req_t unsigned int
#else /* POSIX */
/* http://pubs.opengroup.org/onlinepubs/009695399/functions/read.html */
# define _EXPAT_read read
# define _EXPAT_read_count_t ssize_t
+# define _EXPAT_read_req_t size_t
#endif
#ifndef S_ISREG
@@ -118,7 +121,7 @@ filemap(const tchar *name,
close(fd);
return 0;
}
- n = _EXPAT_read(fd, p, nbytes);
+ n = _EXPAT_read(fd, p, (_EXPAT_read_req_t)nbytes);
if (n < 0) {
tperror(name);
free(p);
diff --git a/xmlwf/xmlwf.vcxproj b/xmlwf/xmlwf.vcxproj
index ed9c50fd..60efd398 100644
--- a/xmlwf/xmlwf.vcxproj
+++ b/xmlwf/xmlwf.vcxproj
@@ -70,7 +70,7 @@
<SuppressStartupBanner>true</SuppressStartupBanner>
<WarningLevel>Level3</WarningLevel>
<AdditionalIncludeDirectories>..\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AssemblerListingLocation>.\..\win32\tmp\Release-xmlwf\</AssemblerListingLocation>
<PrecompiledHeaderOutputFile>.\..\win32\tmp\Release-xmlwf\xmlwf.pch</PrecompiledHeaderOutputFile>
<PrecompiledHeader />
@@ -107,7 +107,7 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<AdditionalIncludeDirectories>..\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AssemblerListingLocation>.\..\win32\tmp\Debug-xmlwf\</AssemblerListingLocation>
<PrecompiledHeaderOutputFile>.\..\win32\tmp\Debug-xmlwf\xmlwf.pch</PrecompiledHeaderOutputFile>
<ObjectFileName>.\..\win32\tmp\Debug-xmlwf\</ObjectFileName>