include png.h before any other headers, because it complains if setjmp.h was included...
authorAndreas Oberritter <obi@opendreambox.org>
Tue, 25 Mar 2008 16:01:47 +0000 (16:01 +0000)
committerAndreas Oberritter <obi@opendreambox.org>
Tue, 25 Mar 2008 16:01:47 +0000 (16:01 +0000)
lib/gdi/picload.cpp

index f8949cf..e8a0e8c 100644 (file)
@@ -1,9 +1,8 @@
+#include <png.h>       // must be included before Python.h because of setjmp
 #include <lib/gdi/picload.h>
 #include "picexif.h"
 #include <lib/python/python.h>
 
-#include <png.h>
-
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdio.h>
@@ -14,7 +13,6 @@ extern "C" {
 #include <gif_lib.h>
 //#include "transupp.h"
 }
-#include <setjmp.h>
 
 unsigned char *pic_buffer=NULL;