fix for CMake compile in windows. ($PNG_INC was needed) - partial revert of commit 27251

This commit is contained in:
Dalai Felinto
2010-03-03 19:18:50 +00:00
parent 5de69e9545
commit c5231858d4
4 changed files with 9 additions and 3 deletions

View File

@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
SET(INC ${ZLIB_INC} intern ../../extern/bullet2/src ../memutil ../guardealloc)
SET(INC ${ZLIB_INC} ${PNG_INC} intern ../../extern/bullet2/src ../memutil ../guardealloc)
FILE(GLOB SRC intern/*.cpp)

View File

@@ -74,7 +74,11 @@ template < class T > inline float MIN3V( T vec) {
//////////////////////////////////////////////////////////////////////
// PNG, POV-Ray, and PBRT output functions
//////////////////////////////////////////////////////////////////////
#ifdef WIN32
#include "png.h"
#else
#include <png.h>
#endif
namespace IMAGE {
/*