Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2010-03-03 22:34:17 +0300
committerDalai Felinto <dfelinto@gmail.com>2010-03-03 22:34:17 +0300
commit790d6ca256e6b572826b2bf214c6fd6c8a623969 (patch)
tree1d877b646a90b35996dc8d94e677bbc5fcbae091 /intern/smoke
parentef0dd615c6af31b30b4eb87c6a2e575254406281 (diff)
small png include adjustments (ifndef NOPNG ...).
* gameplayer is now probably not going to build without PNG turned ON. To fix that it would be necessary to use #ifndef NOPNG around the GPC_Canvas::MakeScreenShot. Since I don't this function it's working in 2.5 yet it's better to wait for that before doing it.
Diffstat (limited to 'intern/smoke')
-rw-r--r--intern/smoke/intern/IMAGE.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/smoke/intern/IMAGE.h b/intern/smoke/intern/IMAGE.h
index ba9b469727b..1f4fe51a4e7 100644
--- a/intern/smoke/intern/IMAGE.h
+++ b/intern/smoke/intern/IMAGE.h
@@ -74,12 +74,17 @@ template < class T > inline float MIN3V( T vec) {
//////////////////////////////////////////////////////////////////////
// PNG, POV-Ray, and PBRT output functions
//////////////////////////////////////////////////////////////////////
+#ifndef NOPNG
#ifdef WIN32
#include "png.h"
#else
#include <png.h>
#endif
+#endif // NOPNG
+/*
+ NOTE when someone decided to uncomment the following code, please remember to put it between #ifndef NOPNG #endif
+*/
namespace IMAGE {
/*
static int writePng(const char *fileName, unsigned char **rowsp, int w, int h)