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.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to