Hi,
The previous patch had a debugging message in it which I did not have
time to remove. Here is the the revised patch which does not have the
message.
Regards,
Sam
--
Sam Spilsbury
From 3475cfde9f23ec343add85cf8f3005a6219565ed Mon Sep 17 00:00:00 2001
From: Sam Spilsbury <smspil...@xps-fedora.(none)>
Date: Thu, 23 Jul 2009 17:50:08 +0800
Subject: [PATCH 2/2] Include cstdio and others instead of their C counterparts in order to conform to g++ 4.3's stricter includes
---
include/compiz.h | 1 +
src/string.cpp | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/include/compiz.h b/include/compiz.h
index 08acef4..ab1b5ca 100644
--- a/include/compiz.h
+++ b/include/compiz.h
@@ -30,6 +30,7 @@
#include <string>
#include <list>
+#include <cstdarg>
#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY (x)
diff --git a/src/string.cpp b/src/string.cpp
index 7ec0bec..898a89f 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -26,7 +26,8 @@
#include <compiz.h>
#include <string.h>
-#include <stdarg.h>
+#include <cstdarg>
+#include <cstdio>
CompString compPrintf (const char *format, ...)
{
--
1.6.2.5
_______________________________________________
Dev mailing list
[email protected]
http://lists.compiz-fusion.org/mailman/listinfo/dev