summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@XPS-FEDORA.(none)>2009-08-01 19:31:29 +0800
committerSam Spilsbury <smspillaz@XPS-FEDORA.(none)>2009-08-01 19:31:29 +0800
commitaa1d560e85bd1e6be246f136d7af1d1012f0ce7e (patch)
treea74f72c63bde055261cbbc24dfe853d5018aa888
parent163094063fb8d5f049157d1d8f18139c5056fd37 (diff)
downloadunity-window-decorator-aa1d560e85bd1e6be246f136d7af1d1012f0ce7e.tar.gz
unity-window-decorator-aa1d560e85bd1e6be246f136d7af1d1012f0ce7e.tar.bz2
Include cstdio and others instead of their C counterparts for g++ 4.4 compatibilty
-rw-r--r--include/compiz.h1
-rw-r--r--plugins/composite/src/screen.cpp2
-rw-r--r--src/string.cpp3
3 files changed, 5 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/plugins/composite/src/screen.cpp b/plugins/composite/src/screen.cpp
index b6ebc44..59d5284 100644
--- a/plugins/composite/src/screen.cpp
+++ b/plugins/composite/src/screen.cpp
@@ -254,6 +254,8 @@ CompositeScreen::CompositeScreen (CompScreen *s) :
setFailed ();
}
+ fprintf (stderr, "created this\n");
+
}
CompositeScreen::~CompositeScreen ()
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, ...)
{