aboutsummaryrefslogtreecommitdiff
path: root/lib/base
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@saftware.de>2009-02-23 19:16:53 +0100
committerAndreas Oberritter <obi@saftware.de>2009-02-23 19:16:53 +0100
commit5a6bde9419249a78c957093e0cc438d7c6eeb46c (patch)
tree3b25aca2b3b98cba4360405737026d45825af0f5 /lib/base
parent4b8fe9d6650b7527b3c588f72540cea3c04423b9 (diff)
downloadenigma2-5a6bde9419249a78c957093e0cc438d7c6eeb46c.tar.gz
enigma2-5a6bde9419249a78c957093e0cc438d7c6eeb46c.zip
fixed compile errors with g++ 4.3 and replaced some c headers by their
c++ counterparts
Diffstat (limited to 'lib/base')
-rw-r--r--lib/base/buffer.cpp5
-rw-r--r--lib/base/eerror.cpp7
-rw-r--r--lib/base/encoding.cpp1
-rw-r--r--lib/base/estring.cpp5
4 files changed, 11 insertions, 7 deletions
diff --git a/lib/base/buffer.cpp b/lib/base/buffer.cpp
index 3a0a6a3d..5dfdfad5 100644
--- a/lib/base/buffer.cpp
+++ b/lib/base/buffer.cpp
@@ -1,8 +1,9 @@
#include <lib/base/buffer.h>
#include <lib/base/eerror.h>
-#include <stdio.h>
+#include <cerrno>
+#include <cstdio>
+#include <cstring>
#include <unistd.h>
-#include <errno.h>
void eIOBuffer::removeblock()
{
diff --git a/lib/base/eerror.cpp b/lib/base/eerror.cpp
index 4c4d6551..35e46e05 100644
--- a/lib/base/eerror.cpp
+++ b/lib/base/eerror.cpp
@@ -1,8 +1,9 @@
#include <lib/base/eerror.h>
#include <lib/base/elock.h>
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
+#include <cstdarg>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include <unistd.h>
#include <string>
diff --git a/lib/base/encoding.cpp b/lib/base/encoding.cpp
index 5d6617d9..45fea102 100644
--- a/lib/base/encoding.cpp
+++ b/lib/base/encoding.cpp
@@ -1,3 +1,4 @@
+#include <cstdlib>
#include <lib/base/encoding.h>
#include <lib/base/eerror.h>
diff --git a/lib/base/estring.cpp b/lib/base/estring.cpp
index f1d50ccc..dcba7705 100644
--- a/lib/base/estring.cpp
+++ b/lib/base/estring.cpp
@@ -1,6 +1,7 @@
+#include <algorithm>
+#include <cctype>
+#include <climits>
#include <string>
-#include <ctype.h>
-#include <limits.h>
#include <lib/base/eerror.h>
#include <lib/base/encoding.h>
#include <lib/base/estring.h>