updates for compiling with gcc 4.3

This commit is contained in:
markt 2007-06-29 17:25:24 +00:00
parent 35251ef5c9
commit 329fca30fd
25 changed files with 143 additions and 0 deletions

View file

@ -1,5 +1,7 @@
(Format: Year/Month/Day)
Changes for 1.0.0:
*07/06/29:
* Updates for compiling with gcc 4.3 (thanks Dmitry E. Oboukhov)
*07/06/28:
* Strip off additional bits in event state set by Xorg, bug #1736252 (Mark)
FbTk/KeyUtil.hh

View file

@ -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;

View file

@ -45,6 +45,11 @@
#else
#include <stdlib.h>
#endif
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
#ifdef HAVE_CONFIG_H

View file

@ -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;

View file

@ -27,6 +27,16 @@
#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"

View file

@ -25,6 +25,11 @@
#include "App.hh"
#include <string>
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
namespace {

View file

@ -67,6 +67,9 @@
#endif
#include <typeinfo>
#include <algorithm>
#ifdef DEBUG
#include <iostream>
using std::cout;

View file

@ -44,6 +44,11 @@
#else
#include <assert.h>
#endif
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
#include <memory>

View file

@ -32,6 +32,16 @@
#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>

View file

@ -39,6 +39,11 @@
#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

View file

@ -45,6 +45,16 @@
#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>

View file

@ -36,6 +36,14 @@
#else
#include <stdio.h>
#endif
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
#include <algorithm>
using std::cerr;
using std::endl;

View file

@ -34,6 +34,11 @@
#include <string>
#include <iostream>
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
using std::cerr;
using std::endl;

View file

@ -33,6 +33,11 @@
#include <iostream>
#include <new>
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
using std::cerr;
using std::endl;

View file

@ -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;

View file

@ -44,6 +44,11 @@
#include <X11/Xlib.h>
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
//use GNU extensions
#ifndef _GNU_SOURCE

View file

@ -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;

View file

@ -41,6 +41,11 @@
#include <sys/types.h>
#include <sys/wait.h>
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
using std::cerr;
using std::endl;

View file

@ -135,6 +135,11 @@ extern "C" {
#include <algorithm>
#include <functional>
#include <stack>
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
using std::cerr;
using std::endl;

View file

@ -34,6 +34,11 @@
#include <iostream>
#include <exception>
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
using std::cerr;
using std::endl;

View file

@ -27,6 +27,11 @@
#include "Screen.hh"
#include <string>
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
using std::string;

View file

@ -75,6 +75,11 @@
#include <iostream>
#include <algorithm>
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
using std::string;
using std::pair;

View file

@ -43,6 +43,11 @@
#else
#include <assert.h>
#endif
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
using std::string;
using std::list;

View file

@ -32,6 +32,11 @@
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <iostream>
#ifdef HAVE_CSTRING
#include <cstring>
#else
#include <string.h>
#endif
using std::string;

View file

@ -34,6 +34,16 @@ extern "C" {
#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;