updates for compiling with gcc 4.3
This commit is contained in:
parent
35251ef5c9
commit
329fca30fd
25 changed files with 143 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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 @@
|
|||
#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 @@
|
|||
#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 "App.hh"
|
||||
|
||||
#include <string>
|
||||
#ifdef HAVE_CSTRING
|
||||
#include <cstring>
|
||||
#else
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -67,6 +67,9 @@
|
|||
#endif
|
||||
#include <typeinfo>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#include <iostream>
|
||||
using std::cout;
|
||||
|
|
|
@ -44,6 +44,11 @@
|
|||
#else
|
||||
#include <assert.h>
|
||||
#endif
|
||||
#ifdef HAVE_CSTRING
|
||||
#include <cstring>
|
||||
#else
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include <memory>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -34,6 +34,11 @@
|
|||
|
||||
#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 <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 <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 <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 @@ extern "C" {
|
|||
#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 <iostream>
|
||||
#include <exception>
|
||||
#ifdef HAVE_CSTRING
|
||||
#include <cstring>
|
||||
#else
|
||||
#include <string.h>
|
||||
#endif
|
||||
using std::cerr;
|
||||
using std::endl;
|
||||
|
||||
|
|
|
@ -27,6 +27,11 @@
|
|||
|
||||
#include "Screen.hh"
|
||||
#include <string>
|
||||
#ifdef HAVE_CSTRING
|
||||
#include <cstring>
|
||||
#else
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
using std::string;
|
||||
|
||||
|
|
|
@ -75,6 +75,11 @@
|
|||
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
#ifdef HAVE_CSTRING
|
||||
#include <cstring>
|
||||
#else
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
using std::string;
|
||||
using std::pair;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue