diff --git a/testpdfio.vcxproj b/testpdfio.vcxproj
index 881e0c9..bc1b7a8 100644
--- a/testpdfio.vcxproj
+++ b/testpdfio.vcxproj
@@ -125,7 +125,7 @@
Level3
true
- _DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ HAVE_LIBPNG;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
true
@@ -140,7 +140,7 @@
true
true
true
- NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ HAVE_LIBPNG;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
true