[xiph-commits] r12065 - trunk/sushivision
giles at svn.xiph.org
giles at svn.xiph.org
Wed Nov 8 09:23:51 PST 2006
Author: giles
Date: 2006-11-08 09:23:50 -0800 (Wed, 08 Nov 2006)
New Revision: 12065
Modified:
trunk/sushivision/Makefile
trunk/sushivision/scale.c
Log:
LLONG_MAX is defined in limits.h, so include it. Except if you're using
gcc on glibc it doesn't define anything if you use gcc, expecting gcc to
do it, and gcc doesn't, at least gcc 4.0.3 on x86_64 unless you pass
-std=c99, so add that to the makefile as well. So, more and less
portable code in a single commit.
Modified: trunk/sushivision/Makefile
===================================================================
--- trunk/sushivision/Makefile 2006-11-08 12:37:59 UTC (rev 12064)
+++ trunk/sushivision/Makefile 2006-11-08 17:23:50 UTC (rev 12065)
@@ -22,7 +22,7 @@
LIBS = -lpthread -ldl
CAIROVER = >= 1.0.0
GTKVER = >= 2.8.0
-GCF = `pkg-config --static --cflags "gtk+-2.0 $(GTKVER) cairo $(CAIROVER) freetype2 gthread-2.0"`
+GCF = -std=c99 `pkg-config --static --cflags "gtk+-2.0 $(GTKVER) cairo $(CAIROVER) freetype2 gthread-2.0"`
LDF = -pthread -L/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lm -lfontconfig -lpng12 -lXrender -lX11 -lpthread -lfreetype -lz -lgthread-2.0 -lglib-2.0 -lcairo
all:
Modified: trunk/sushivision/scale.c
===================================================================
--- trunk/sushivision/scale.c 2006-11-08 12:37:59 UTC (rev 12064)
+++ trunk/sushivision/scale.c 2006-11-08 17:23:50 UTC (rev 12065)
@@ -25,6 +25,7 @@
#include <cairo-ft.h>
#include <fontconfig/fontconfig.h>
#include <stdio.h>
+#include <limits.h>
#include "scale.h"
/* slider scales */
More information about the commits
mailing list