|
From: <md...@us...> - 2008-04-24 17:58:04
|
Revision: 5072
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5072&view=rev
Author: mdboom
Date: 2008-04-24 10:57:57 -0700 (Thu, 24 Apr 2008)
Log Message:
-----------
Trying to fix build for Eric (by including png.h first)
Modified Paths:
--------------
trunk/matplotlib/src/_image.cpp
Modified: trunk/matplotlib/src/_image.cpp
===================================================================
--- trunk/matplotlib/src/_image.cpp 2008-04-24 13:23:05 UTC (rev 5071)
+++ trunk/matplotlib/src/_image.cpp 2008-04-24 17:57:57 UTC (rev 5072)
@@ -1,3 +1,10 @@
+#include <png.h>
+
+// To remove a gcc warning
+#ifdef _POSIX_C_SOURCE
+#undef _POSIX_C_SOURCE
+#endif
+
#include "Python.h" //after png.h due to setjmp bug
#include <string>
@@ -5,7 +12,6 @@
#include <fstream>
#include <cmath>
#include <cstdio>
-#include <png.h>
#define PY_ARRAY_TYPES_PREFIX NumPy
#include "numpy/arrayobject.h"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|