*** ./test/threads.cpp.ORIG Thu May 19 10:53:10 2011 --- ./test/threads.cpp Thu May 19 10:53:21 2011 *************** *** 62,68 **** // very simple prime number calculator ! for (; ; n+= step) { int p; ! int hn = (int)sqrt(n); for (p=3; p<=hn; p+=2) if ( n%p == 0 ) break; if (p >= hn) { --- 62,68 ---- // very simple prime number calculator ! for (; ; n+= step) { int p; ! int hn = (int)sqrt((double) n); for (p=3; p<=hn; p+=2) if ( n%p == 0 ) break; if (p >= hn) { *** ./test/alphablend.cpp.ORIG Thu May 19 10:53:39 2011 --- ./test/alphablend.cpp Thu May 19 10:53:57 2011 *************** *** 177,183 **** /* Slow distance formula (from center of light) */ xdist = x-(light->width()/2); ydist = y-(light->height()/2); ! range = (int)sqrt(xdist*xdist+ydist*ydist); /* Scale distance to range of transparency (0-255) */ if ( range > radius ) { --- 177,183 ---- /* Slow distance formula (from center of light) */ xdist = x-(light->width()/2); ydist = y-(light->height()/2); ! range = (int)sqrt((double)(xdist*xdist+ydist*ydist)); /* Scale distance to range of transparency (0-255) */ if ( range > radius ) { *** ./src/images/Fl_Png.cpp.ORIG Thu May 19 10:28:42 2011 --- ./src/images/Fl_Png.cpp Thu May 19 10:47:25 2011 *************** *** 9,14 **** --- 9,22 ---- #include #include "../core/fl_internal.h" + + // /usr/include/sys/context.h contains the following line :-( + // #define jmpbuf __jmpbuf) + // which messes up the jmpbuf png_struct member + #ifdef jmpbuf + #undef jmpbuf + #endif + static volatile int png_quality; //Maybe accessed through processes static volatile char *png_last_error; //Maybe accessed through processes *** ./src/widgets/Fl_Tabs.cpp.ORIG Thu May 19 09:52:05 2011 --- ./src/widgets/Fl_Tabs.cpp Thu May 19 09:56:08 2011 *************** *** 288,294 **** int y2 = p2[1]; Fl_Color clr; ! if ( (dx >= 0 && fabs(dy) <= dx) || (dy <= 0 && fabs(dx) <= -dy) ) clr = upColor; else clr = downColor; --- 288,294 ---- int y2 = p2[1]; Fl_Color clr; ! if ( (dx >= 0 && abs(dy) <= dx) || (dy <= 0 && abs(dx) <= -dy) ) clr = upColor; else clr = downColor; *** ./efltk/Fl_Socket.h.ORIG Thu May 19 09:50:42 2011 --- ./efltk/Fl_Socket.h Thu May 19 09:50:44 2011 *************** *** 6,11 **** --- 6,14 ---- # include # include # include + # ifdef _AIX + # include + # endif typedef int SOCKET; # define INVALID_SOCKET -1 #else *** ./configure.ORIG Thu May 19 09:45:50 2011 --- ./configure Thu May 19 11:50:12 2011 *************** *** 4566,4573 **** fi fi ! CFLAGS="-fexceptions" ! CXXFLAGS="-fexceptions" ac_ext=c --- 4566,4573 ---- fi fi ! #CFLAGS="-fexceptions" ! #CXXFLAGS="-fexceptions" ac_ext=c *** ./makeinclude.in.ORIG Thu May 19 09:33:49 2011 --- ./makeinclude.in Thu May 19 09:34:02 2011 *************** *** 54,60 **** # flags for compiler: # WALL = -Wcomment -Wformat -Wimplicit-int -Werror-implicit-function-declaration -Wmain -Wmultichar -Wparentheses -Wreturn-type -Wswitch -Wunused ! WALL = -Wall CFLAGS = -DHAVE_CONFIG_H -I$(EFLTK_BUILDDIR) $(WALL) @CFLAGS@ @DEBUGFLAG@ CXXFLAGS = -DHAVE_CONFIG_H -I$(EFLTK_BUILDDIR) $(WALL) @CXXFLAGS@ @DEBUGFLAG@ --- 54,60 ---- # flags for compiler: # WALL = -Wcomment -Wformat -Wimplicit-int -Werror-implicit-function-declaration -Wmain -Wmultichar -Wparentheses -Wreturn-type -Wswitch -Wunused ! WALL = CFLAGS = -DHAVE_CONFIG_H -I$(EFLTK_BUILDDIR) $(WALL) @CFLAGS@ @DEBUGFLAG@ CXXFLAGS = -DHAVE_CONFIG_H -I$(EFLTK_BUILDDIR) $(WALL) @CXXFLAGS@ @DEBUGFLAG@