sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Peng Chang (Charles) (268107f115a115af16b8cdb37bbe42047e6943fe)
- From: "Peng Chang (Charles)" <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Peng Chang (Charles) (268107f115a115af16b8cdb37bbe42047e6943fe)
- Date: Sat, 8 Aug 2009 02:43:15 -0500
GIT changes to master grimoire by Peng Chang (Charles) <chp AT sourcemage.org>:
display/svgalib/HISTORY | 5 +++++
display/svgalib/PRE_BUILD | 2 ++
display/svgalib/c99_round.patch | 15 +++++++++++++++
3 files changed, 22 insertions(+)
New commits:
commit 268107f115a115af16b8cdb37bbe42047e6943fe
Author: Peng Chang (Charles) <chp AT sourcemage.org>
Commit: Peng Chang (Charles) <chp AT sourcemage.org>
svgalib: added a patch to test whether "round" should be defined
diff --git a/display/svgalib/HISTORY b/display/svgalib/HISTORY
index 270762d..ecd63a3 100644
--- a/display/svgalib/HISTORY
+++ b/display/svgalib/HISTORY
@@ -1,3 +1,8 @@
+2009-08-08 Peng Chang (Charles) <chp AT sourcemage.org>
+ * c99_round.patch: it seems that c99 is enabled by default, and
+ function round shouldn't be re-defined when c99 is enabled
+ * PRE_BUILD: apply c99_round.path
+
2008-12-23 Robin Cook <rcook AT wyrms.net>
* PRE_BUILD: apply patch provided by maintainer for vesa driver
compile failure
http://svn.rpmforge.net/svn/trunk/rpms/svgalib/svgalib-1.9.25-kernel-2.6.26.patch
diff --git a/display/svgalib/PRE_BUILD b/display/svgalib/PRE_BUILD
index 83ddb8e..eca300e 100755
--- a/display/svgalib/PRE_BUILD
+++ b/display/svgalib/PRE_BUILD
@@ -26,6 +26,8 @@ elif [ ${KER//\./} > 2614 ]; then
patch -p2 < ${SCRIPT_DIRECTORY}/svgalib_helper-2.6.15.diff
fi &&
+patch -p0 < $SCRIPT_DIRECTORY/c99_round.patch &&
+
# Some other fixes I needed to do
sedit 's:<config.h>:\"config.h\":' threeDKit/3dinit.c &&
sedit 's:<config.h>:\"config.h\":' threeDKit/3dkit.c &&
diff --git a/display/svgalib/c99_round.patch b/display/svgalib/c99_round.patch
new file mode 100644
index 0000000..dd04f30
--- /dev/null
+++ b/display/svgalib/c99_round.patch
@@ -0,0 +1,15 @@
+--- utils/gtf/gtfcalc.c.orig 2009-08-08 15:28:03.000000000 +0800
++++ utils/gtf/gtfcalc.c 2009-08-08 15:28:51.000000000 +0800
+@@ -64,10 +64,12 @@ static GTF_constants GC = {
+
+ /*-------------------------- Implementation
-------------------------------*/
+
++#ifndef __USE_ISOC99
+ static double round(double v)
+ {
+ return floor(v + 0.5);
+ }
++#endif
+
+ static void GetInternalConstants(GTF_constants *c)
+
/****************************************************************************
- [SM-Commit] GIT changes to master grimoire by Peng Chang (Charles) (268107f115a115af16b8cdb37bbe42047e6943fe), Peng Chang (Charles), 08/08/2009
Archive powered by MHonArc 2.6.24.