diff options
| author | Andreas Oberritter <obi@saftware.de> | 2009-02-23 19:16:53 +0100 |
|---|---|---|
| committer | Andreas Oberritter <obi@saftware.de> | 2009-02-23 19:16:53 +0100 |
| commit | 5a6bde9419249a78c957093e0cc438d7c6eeb46c (patch) | |
| tree | 3b25aca2b3b98cba4360405737026d45825af0f5 /lib/base | |
| parent | 4b8fe9d6650b7527b3c588f72540cea3c04423b9 (diff) | |
| download | enigma2-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.cpp | 5 | ||||
| -rw-r--r-- | lib/base/eerror.cpp | 7 | ||||
| -rw-r--r-- | lib/base/encoding.cpp | 1 | ||||
| -rw-r--r-- | lib/base/estring.cpp | 5 |
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> |
