updates for compiling with gcc 4.3
jump to
@@ -42,6 +42,11 @@
#include <iostream> #include <algorithm> #include <new> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::cerr; using std::endl;
@@ -45,6 +45,11 @@ #include <cstdlib>
#else #include <stdlib.h> #endif +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif #ifdef HAVE_CONFIG_H
@@ -30,6 +30,11 @@
#include <X11/Xutil.h> #include <X11/Xatom.h> #include <iostream> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::cerr;
@@ -27,6 +27,16 @@ #include <cerrno>
#else #include <errno.h> #endif +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif +#ifdef HAVE_CSTDLIB + #include <cstdlib> +#else + #include <stdlib.h> +#endif #include "FbString.hh" #include "config.h"
@@ -25,6 +25,11 @@ #include "KeyUtil.hh"
#include "App.hh" #include <string> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif namespace {
@@ -67,6 +67,9 @@ #include <string.h>
#endif #include <typeinfo> +#include <algorithm> + + #ifdef DEBUG #include <iostream> using std::cout;
@@ -44,6 +44,11 @@ #include <cassert>
#else #include <assert.h> #endif +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif #include <memory>
@@ -32,6 +32,16 @@ #include <cctype>
#else #include <ctype.h> #endif +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif +#ifdef HAVE_CSTDLIB + #include <cstdlib> +#else + #include <stdlib.h> +#endif #include <X11/keysym.h> #include <X11/Xutil.h>
@@ -39,6 +39,11 @@ #include <cstdio>
#else #include <stdio.h> #endif +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif // mipspro has no new(nothrow) #if defined sgi && ! defined GCC
@@ -45,6 +45,16 @@ #include <cstdio>
#else #include <stdio.h> #endif +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif +#ifdef HAVE_CSTDLIB + #include <cstdlib> +#else + #include <stdlib.h> +#endif #include <iostream> #include <memory>
@@ -36,6 +36,14 @@ #include <cstdio>
#else #include <stdio.h> #endif +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif + +#include <algorithm> + using std::cerr; using std::endl;
@@ -34,6 +34,11 @@ #include "FbTk/EventManager.hh"
#include <string> #include <iostream> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::cerr; using std::endl;
@@ -33,6 +33,11 @@ #include "FbTk/I18n.hh"
#include <iostream> #include <new> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::cerr; using std::endl;
@@ -49,6 +49,11 @@
#include <typeinfo> #include <string> #include <iterator> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::string; using std::list;
@@ -44,6 +44,11 @@ #include "FbTk/Transparent.hh"
#include <X11/Xlib.h> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif //use GNU extensions #ifndef _GNU_SOURCE
@@ -35,6 +35,11 @@
#include <stdio.h> #include <string> #include <vector> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::string; using std::vector;
@@ -41,6 +41,11 @@ #include <iostream>
#include <sys/types.h> #include <sys/wait.h> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::cerr; using std::endl;
@@ -135,6 +135,11 @@ #include <iostream>
#include <algorithm> #include <functional> #include <stack> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::cerr; using std::endl;
@@ -34,6 +34,11 @@ #include "Window.hh"
#include <iostream> #include <exception> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::cerr; using std::endl;
@@ -27,6 +27,11 @@ // holds screen resource handling
#include "Screen.hh" #include <string> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::string;
@@ -75,6 +75,11 @@ #include <X11/Xlib.h>
#include <iostream> #include <algorithm> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::string; using std::pair;
@@ -43,6 +43,11 @@ #include <cassert>
#else #include <assert.h> #endif +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::string; using std::list;
@@ -32,6 +32,11 @@ #include <X11/Xutil.h>
#include <X11/Xatom.h> #include <X11/Xlib.h> #include <iostream> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif using std::string;
@@ -34,6 +34,16 @@ #endif // XINERAMA
#include <string> #include <iostream> +#ifdef HAVE_CSTRING + #include <cstring> +#else + #include <string.h> +#endif +#ifdef HAVE_CSTDLIB + #include <cstdlib> +#else + #include <stdlib.h> +#endif using std::cerr; using std::endl;