From 561c33f092ca491b01dc4397c9d4832c0f22eb8f Mon Sep 17 00:00:00 2001 From: kts Date: Tue, 24 Feb 2015 17:18:40 -0800 Subject: [PATCH] Updated VS project. Added a _WIN32 ifdef and typedefs for uint32_t and uint8_t due to Windows not including inttypes.h. --- build/vs/vs.vcxproj | 6 ++++++ build/vs/vs.vcxproj.filters | 18 ++++++++++++++++++ src/checksum.hpp | 6 ++++++ 3 files changed, 30 insertions(+) diff --git a/build/vs/vs.vcxproj b/build/vs/vs.vcxproj index 8b56c5c..2f3f095 100644 --- a/build/vs/vs.vcxproj +++ b/build/vs/vs.vcxproj @@ -76,6 +76,9 @@ xcopy /s /e /d /y "..\..\data" "$(OutDir)data\" + + + @@ -104,7 +107,10 @@ xcopy /s /e /d /y "..\..\data" "$(OutDir)data\" + + + diff --git a/build/vs/vs.vcxproj.filters b/build/vs/vs.vcxproj.filters index f1a5393..76bf59a 100644 --- a/build/vs/vs.vcxproj.filters +++ b/build/vs/vs.vcxproj.filters @@ -63,6 +63,15 @@ Classes + + Classes + + + Source Files + + + Source Files + @@ -121,5 +130,14 @@ Classes + + Classes + + + Source Files + + + Source Files + \ No newline at end of file diff --git a/src/checksum.hpp b/src/checksum.hpp index 67d08bf..c9a6e01 100644 --- a/src/checksum.hpp +++ b/src/checksum.hpp @@ -5,7 +5,13 @@ checksum.cpp/checksum.hpp provide functionality for checking and generating chec ================================================================ */ #ifndef CHECKSUM_HPP #define CHECKSUM_HPP +// FIXME: is this really okay? +#ifdef _WIN32 +typedef unsigned __int32 uint32_t; +typedef unsigned __int8 uint8_t; +#else #include +#endif #include uint32_t crc32(uint32_t crc, const char *buf, size_t len);