tag 373241 patch thanks The attached patch allows effectv to build with gcc-4.1.
Thanks, Matej
--- effectv-0.3.9.dist/utils.c
+++ effectv-0.3.9/utils.c
@@ -26,7 +26,7 @@
/*
* HSI color system utilities
*/
-static int trunc(double f)
+static int trunc_color(double f)
{
int i;
@@ -45,9 +45,9 @@
Gv=1+S*sin(T);
Bv=1+S*sin(T+2*M_PI/3);
T=255.999*I/2;
- *r=trunc(Rv*T);
- *g=trunc(Gv*T);
- *b=trunc(Bv*T);
+ *r=trunc_color(Rv*T);
+ *g=trunc_color(Gv*T);
+ *b=trunc_color(Bv*T);
}
/*

