aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-08-31 15:26:40 (GMT)
committerrathnor <rathnor>2004-08-31 15:26:40 (GMT)
commitd17bf39a43a7581773c67d496e4022499d59cd26 (patch)
tree89e964e0e9a207d726e4ffefb88b19c51c591817
parent6a78695e6ed92f8631b84874dcb754d32fcf99d5 (diff)
downloadfluxbox_pavel-d17bf39a43a7581773c67d496e4022499d59cd26.zip
fluxbox_pavel-d17bf39a43a7581773c67d496e4022499d59cd26.tar.bz2
add autoconf check for std c++ headers
-rw-r--r--ChangeLog3
-rw-r--r--configure.in2
-rw-r--r--src/ClientPattern.cc8
-rw-r--r--src/ClockTool.cc8
-rw-r--r--src/FbAtoms.cc8
-rw-r--r--src/FbTk/App.cc6
-rw-r--r--src/FbTk/FbWindow.cc8
-rw-r--r--src/FbTk/Font.cc20
-rw-r--r--src/FbTk/I18n.cc20
-rw-r--r--src/FbTk/ImageControl.cc20
-rw-r--r--src/FbTk/Menu.cc20
-rw-r--r--src/FbTk/MenuTheme.cc8
-rw-r--r--src/FbTk/Resource.cc8
-rw-r--r--src/FbTk/StringUtil.cc26
-rw-r--r--src/FbTk/TextBox.cc8
-rw-r--r--src/FbTk/Texture.cc14
-rw-r--r--src/FbTk/TextureRender.cc8
-rw-r--r--src/FbTk/Theme.cc8
-rw-r--r--src/FbTk/ThemeItems.hh8
-rw-r--r--src/FbTk/Timer.cc6
-rw-r--r--src/FbTk/Timer.hh6
-rw-r--r--src/FbTk/XFontImp.cc8
-rw-r--r--src/FbTk/XmbFontImp.cc20
-rw-r--r--src/IntResMenuItem.cc8
-rw-r--r--src/Keys.cc32
-rw-r--r--src/Screen.hh8
-rw-r--r--src/Shape.cc8
-rw-r--r--src/Slit.cc8
-rw-r--r--src/Toolbar.cc8
-rw-r--r--src/WinClient.cc8
-rw-r--r--src/Window.cc20
-rw-r--r--src/Workspace.cc14
-rw-r--r--src/WorkspaceCmd.cc8
-rw-r--r--src/fluxbox.cc20
-rw-r--r--src/fluxbox.hh8
-rw-r--r--src/main.cc20
-rw-r--r--src/tests/Resourcetest.cc6
-rw-r--r--src/tests/signaltest.cc6
-rw-r--r--util/bsetroot.cc20
-rw-r--r--util/fbrun/FbRun.cc8
40 files changed, 363 insertions, 98 deletions
diff --git a/ChangeLog b/ChangeLog
index 78d4e0f..b6e6496 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
1(Format: Year/Month/Day) 1(Format: Year/Month/Day)
2Changes for 0.9.10: 2Changes for 0.9.10:
3*04/08/31:
4 * Check for C++ std headers, some older machines dont have them (Simon)
5 configure.in src/<MANY>.hh/cc
3*04/08/30: 6*04/08/30:
4 * Changed session.screen<num>.iconbar.clientWidth to 7 * Changed session.screen<num>.iconbar.clientWidth to
5 session.screen<num>.iconbar.iconWidth 8 session.screen<num>.iconbar.iconWidth
diff --git a/configure.in b/configure.in
index 26ab1fc..79209f5 100644
--- a/configure.in
+++ b/configure.in
@@ -33,6 +33,8 @@ AC_CHECK_HEADERS(sstream, ,
33 )] 33 )]
34) 34)
35 35
36AC_CHECK_HEADERS(cassert cctype cerrno cmath cstdarg cstdio cstdlib cstring ctime)
37
36AC_HEADER_TIME 38AC_HEADER_TIME
37 39
38dnl Check for existance of basename(), setlocale() and strftime() 40dnl Check for existance of basename(), setlocale() and strftime()
diff --git a/src/ClientPattern.cc b/src/ClientPattern.cc
index 2fba185..c175c64 100644
--- a/src/ClientPattern.cc
+++ b/src/ClientPattern.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: ClientPattern.cc,v 1.7 2004/04/28 13:04:06 rathnor Exp $ 23// $Id: ClientPattern.cc,v 1.8 2004/08/31 15:26:38 rathnor Exp $
24 24
25#include "ClientPattern.hh" 25#include "ClientPattern.hh"
26#include "RegExp.hh" 26#include "RegExp.hh"
@@ -38,7 +38,11 @@
38#include <fstream> 38#include <fstream>
39#include <string> 39#include <string>
40#include <memory> 40#include <memory>
41#include <cstdio> 41#ifdef HAVE_CSTDIO
42 #include <cstdio>
43#else
44 #include <stdio.h>
45#endif
42 46
43// needed as well for index on some systems (e.g. solaris) 47// needed as well for index on some systems (e.g. solaris)
44#include <strings.h> 48#include <strings.h>
diff --git a/src/ClockTool.cc b/src/ClockTool.cc
index 2364a5b..dbc128f 100644
--- a/src/ClockTool.cc
+++ b/src/ClockTool.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: ClockTool.cc,v 1.13 2004/08/29 08:33:12 rathnor Exp $ 23// $Id: ClockTool.cc,v 1.14 2004/08/31 15:26:38 rathnor Exp $
24 24
25#include "ClockTool.hh" 25#include "ClockTool.hh"
26 26
@@ -39,7 +39,11 @@
39#include "config.h" 39#include "config.h"
40#endif // HAVE_CONFIG_H 40#endif // HAVE_CONFIG_H
41 41
42#include <ctime> 42#ifdef HAVE_CTIME
43 #include <ctime>
44#else
45 #include <time.h>
46#endif
43#include <string> 47#include <string>
44#include <iostream> 48#include <iostream>
45using namespace std; 49using namespace std;
diff --git a/src/FbAtoms.cc b/src/FbAtoms.cc
index de8a9a8..8b2bfb2 100644
--- a/src/FbAtoms.cc
+++ b/src/FbAtoms.cc
@@ -19,13 +19,17 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbAtoms.cc,v 1.9 2003/09/24 14:02:25 rathnor Exp $ 22// $Id: FbAtoms.cc,v 1.10 2004/08/31 15:26:38 rathnor Exp $
23 23
24#include "FbAtoms.hh" 24#include "FbAtoms.hh"
25#include "App.hh" 25#include "App.hh"
26 26
27#include <string> 27#include <string>
28#include <cassert> 28#ifdef HAVE_CASSERT
29 #include <cassert>
30#else
31 #include <assert.h>
32#endif
29 33
30using namespace std; 34using namespace std;
31 35
diff --git a/src/FbTk/App.cc b/src/FbTk/App.cc
index 9b511e3..2479944 100644
--- a/src/FbTk/App.cc
+++ b/src/FbTk/App.cc
@@ -23,7 +23,11 @@
23 23
24#include "EventManager.hh" 24#include "EventManager.hh"
25 25
26#include <cassert> 26#ifdef HAVE_CASSERT
27 #include <cassert>
28#else
29 #include <assert.h>
30#endif
27#include <string> 31#include <string>
28 32
29namespace FbTk { 33namespace FbTk {
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index 67afb68..2209835 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWindow.cc,v 1.36 2004/06/15 11:03:17 fluxgen Exp $ 22// $Id: FbWindow.cc,v 1.37 2004/08/31 15:26:39 rathnor Exp $
23 23
24#include "FbWindow.hh" 24#include "FbWindow.hh"
25 25
@@ -35,7 +35,11 @@
35#include <X11/Xutil.h> 35#include <X11/Xutil.h>
36#include <X11/Xatom.h> 36#include <X11/Xatom.h>
37 37
38#include <cassert> 38#ifdef HAVE_CASSERT
39 #include <cassert>
40#else
41 #include <assert.h>
42#endif
39 43
40namespace FbTk { 44namespace FbTk {
41 45
diff --git a/src/FbTk/Font.cc b/src/FbTk/Font.cc
index 40da222..774e92a 100644
--- a/src/FbTk/Font.cc
+++ b/src/FbTk/Font.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22//$Id: Font.cc,v 1.13 2004/08/28 18:10:19 rathnor Exp $ 22//$Id: Font.cc,v 1.14 2004/08/31 15:26:39 rathnor Exp $
23 23
24 24
25#include "StringUtil.hh" 25#include "StringUtil.hh"
@@ -55,8 +55,16 @@
55#endif //__USE_GNU 55#endif //__USE_GNU
56 56
57#include <iostream> 57#include <iostream>
58#include <cstring> 58#ifdef HAVE_CSTRING
59#include <cstdlib> 59 #include <cstring>
60#else
61 #include <string.h>
62#endif
63#ifdef HAVE_CSTDLIB
64 #include <cstdlib>
65#else
66 #include <stdlib.h>
67#endif
60#include <list> 68#include <list>
61#include <typeinfo> 69#include <typeinfo>
62#include <langinfo.h> 70#include <langinfo.h>
@@ -71,7 +79,11 @@
71#error "You dont have sstream or strstream headers!" 79#error "You dont have sstream or strstream headers!"
72#endif // HAVE_STRSTREAM 80#endif // HAVE_STRSTREAM
73 81
74#include <cstdlib> 82#ifdef HAVE_CSTDLIB
83 #include <cstdlib>
84#else
85 #include <stdlib.h>
86#endif
75 87
76using namespace std; 88using namespace std;
77 89
diff --git a/src/FbTk/I18n.cc b/src/FbTk/I18n.cc
index 64abda1..a077758 100644
--- a/src/FbTk/I18n.cc
+++ b/src/FbTk/I18n.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: I18n.cc,v 1.2 2004/06/20 15:16:08 rathnor Exp $ 25// $Id: I18n.cc,v 1.3 2004/08/31 15:26:39 rathnor Exp $
26 26
27/* Note: 27/* Note:
28 * A good reference for the older non-gettext style I18n 28 * A good reference for the older non-gettext style I18n
@@ -41,9 +41,21 @@
41 41
42#include <X11/Xlocale.h> 42#include <X11/Xlocale.h>
43 43
44#include <cstdlib> 44#ifdef HAVE_CSTDLIB
45#include <cstring> 45 #include <cstdlib>
46#include <cstdio> 46#else
47 #include <stdlib.h>
48#endif
49#ifdef HAVE_CSTRING
50 #include <cstring>
51#else
52 #include <string.h>
53#endif
54#ifdef HAVE_CSTDIO
55 #include <cstdio>
56#else
57 #include <stdio.h>
58#endif
47 59
48#include <iostream> 60#include <iostream>
49 61
diff --git a/src/FbTk/ImageControl.cc b/src/FbTk/ImageControl.cc
index 9e4f2df..b06b623 100644
--- a/src/FbTk/ImageControl.cc
+++ b/src/FbTk/ImageControl.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: ImageControl.cc,v 1.13 2004/06/07 11:46:05 rathnor Exp $ 25// $Id: ImageControl.cc,v 1.14 2004/08/31 15:26:39 rathnor Exp $
26 26
27#include "ImageControl.hh" 27#include "ImageControl.hh"
28 28
@@ -45,9 +45,21 @@
45#include <sys/types.h> 45#include <sys/types.h>
46#endif // HAVE_SYS_TYPES_H 46#endif // HAVE_SYS_TYPES_H
47 47
48#include <cstdlib> 48#ifdef HAVE_CSTDLIB
49#include <cstring> 49 #include <cstdlib>
50#include <cstdio> 50#else
51 #include <stdlib.h>
52#endif
53#ifdef HAVE_CSTRING
54 #include <cstring>
55#else
56 #include <string.h>
57#endif
58#ifdef HAVE_CSTDIO
59 #include <cstdio>
60#else
61 #include <stdio.h>
62#endif
51 63
52#ifdef HAVE_CTYPE_H 64#ifdef HAVE_CTYPE_H
53#include <ctype.h> 65#include <ctype.h>
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index e03d783..b38ae73 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Menu.cc,v 1.78 2004/08/30 10:23:37 akir Exp $ 25// $Id: Menu.cc,v 1.79 2004/08/31 15:26:39 rathnor Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -48,9 +48,21 @@
48#include <X11/Xatom.h> 48#include <X11/Xatom.h>
49#include <X11/keysym.h> 49#include <X11/keysym.h>
50 50
51#include <cstdio> 51#ifdef HAVE_CSTDIO
52#include <cstdlib> 52 #include <cstdio>
53#include <cstring> 53#else
54 #include <stdio.h>
55#endif
56#ifdef HAVE_CSTDLIB
57 #include <cstdlib>
58#else
59 #include <stdlib.h>
60#endif
61#ifdef HAVE_CSTRING
62 #include <cstring>
63#else
64 #include <string.h>
65#endif
54#include <iostream> 66#include <iostream>
55#include <typeinfo> 67#include <typeinfo>
56 68
diff --git a/src/FbTk/MenuTheme.cc b/src/FbTk/MenuTheme.cc
index 4d04e17..9fc8959 100644
--- a/src/FbTk/MenuTheme.cc
+++ b/src/FbTk/MenuTheme.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: MenuTheme.cc,v 1.19 2004/08/29 12:33:55 rathnor Exp $ 22// $Id: MenuTheme.cc,v 1.20 2004/08/31 15:26:39 rathnor Exp $
23 23
24#include "MenuTheme.hh" 24#include "MenuTheme.hh"
25 25
@@ -29,7 +29,11 @@
29#include "App.hh" 29#include "App.hh"
30#include "StringUtil.hh" 30#include "StringUtil.hh"
31 31
32#include <cstdio> 32#ifdef HAVE_CSTDIO
33 #include <cstdio>
34#else
35 #include <stdio.h>
36#endif
33#include <algorithm> 37#include <algorithm>
34 38
35namespace FbTk { 39namespace FbTk {
diff --git a/src/FbTk/Resource.cc b/src/FbTk/Resource.cc
index 9b89e2b..08b534d 100644
--- a/src/FbTk/Resource.cc
+++ b/src/FbTk/Resource.cc
@@ -19,14 +19,18 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Resource.cc,v 1.6 2004/06/07 11:46:05 rathnor Exp $ 22// $Id: Resource.cc,v 1.7 2004/08/31 15:26:39 rathnor Exp $
23 23
24#include "XrmDatabaseHelper.hh" 24#include "XrmDatabaseHelper.hh"
25#include "Resource.hh" 25#include "Resource.hh"
26#include "I18n.hh" 26#include "I18n.hh"
27 27
28#include <iostream> 28#include <iostream>
29#include <cassert> 29#ifdef HAVE_CASSERT
30 #include <cassert>
31#else
32 #include <assert.h>
33#endif
30 34
31using namespace std; 35using namespace std;
32 36
diff --git a/src/FbTk/StringUtil.cc b/src/FbTk/StringUtil.cc
index 92d9eb3..92246e3 100644
--- a/src/FbTk/StringUtil.cc
+++ b/src/FbTk/StringUtil.cc
@@ -19,15 +19,31 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: StringUtil.cc,v 1.11 2004/05/02 20:42:56 fluxgen Exp $ 22// $Id: StringUtil.cc,v 1.12 2004/08/31 15:26:39 rathnor Exp $
23 23
24#include "StringUtil.hh" 24#include "StringUtil.hh"
25 25
26#include <string> 26#include <string>
27#include <cstdio> 27#ifdef HAVE_CSTDIO
28#include <cstdlib> 28 #include <cstdio>
29#include <cctype> 29#else
30#include <cassert> 30 #include <stdio.h>
31#endif
32#ifdef HAVE_CSTDLIB
33 #include <cstdlib>
34#else
35 #include <stdlib.h>
36#endif
37#ifdef HAVE_CCTYPE
38 #include <cctype>
39#else
40 #include <ctype.h>
41#endif
42#ifdef HAVE_CASSERT
43 #include <cassert>
44#else
45 #include <assert.h>
46#endif
31#include <memory> 47#include <memory>
32#include <algorithm> 48#include <algorithm>
33 49
diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc
index a23f9a6..34671c9 100644
--- a/src/FbTk/TextBox.cc
+++ b/src/FbTk/TextBox.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: TextBox.cc,v 1.11 2004/08/11 12:41:28 fluxgen Exp $ 22// $Id: TextBox.cc,v 1.12 2004/08/31 15:26:39 rathnor Exp $
23 23
24#include "TextBox.hh" 24#include "TextBox.hh"
25#include "Font.hh" 25#include "Font.hh"
@@ -27,7 +27,11 @@
27#include "App.hh" 27#include "App.hh"
28#include "KeyUtil.hh" 28#include "KeyUtil.hh"
29 29
30#include <cctype> 30#ifdef HAVE_CCTYPE
31 #include <cctype>
32#else
33 #include <ctype.h>
34#endif
31#include <X11/keysym.h> 35#include <X11/keysym.h>
32#include <X11/Xutil.h> 36#include <X11/Xutil.h>
33 37
diff --git a/src/FbTk/Texture.cc b/src/FbTk/Texture.cc
index dbf9cf5..812f76a 100644
--- a/src/FbTk/Texture.cc
+++ b/src/FbTk/Texture.cc
@@ -22,14 +22,22 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Texture.cc,v 1.9 2004/08/26 16:37:48 rathnor Exp $ 25// $Id: Texture.cc,v 1.10 2004/08/31 15:26:39 rathnor Exp $
26 26
27#include "App.hh" 27#include "App.hh"
28#include "Texture.hh" 28#include "Texture.hh"
29 29
30#include <X11/Xlib.h> 30#include <X11/Xlib.h>
31#include <cstring> 31#ifdef HAVE_CSTRING
32#include <cctype> 32 #include <cstring>
33#else
34 #include <string.h>
35#endif
36#ifdef HAVE_CCTYPE
37 #include <cctype>
38#else
39 #include <ctype.h>
40#endif
33 41
34namespace FbTk { 42namespace FbTk {
35 43
diff --git a/src/FbTk/TextureRender.cc b/src/FbTk/TextureRender.cc
index 04fb2b3..dc51d35 100644
--- a/src/FbTk/TextureRender.cc
+++ b/src/FbTk/TextureRender.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: TextureRender.cc,v 1.10 2004/07/05 23:51:57 fluxgen Exp $ 25// $Id: TextureRender.cc,v 1.11 2004/08/31 15:26:39 rathnor Exp $
26 26
27#include "TextureRender.hh" 27#include "TextureRender.hh"
28 28
@@ -34,7 +34,11 @@
34 34
35#include <iostream> 35#include <iostream>
36#include <string> 36#include <string>
37#include <cstdio> 37#ifdef HAVE_CSTDIO
38 #include <cstdio>
39#else
40 #include <stdio.h>
41#endif
38using namespace std; 42using namespace std;
39 43
40namespace FbTk { 44namespace FbTk {
diff --git a/src/FbTk/Theme.cc b/src/FbTk/Theme.cc
index e557d29..f3b4530 100644
--- a/src/FbTk/Theme.cc
+++ b/src/FbTk/Theme.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Theme.cc,v 1.28 2004/08/26 18:26:39 akir Exp $ 22// $Id: Theme.cc,v 1.29 2004/08/31 15:26:39 rathnor Exp $
23 23
24#include "Theme.hh" 24#include "Theme.hh"
25 25
@@ -30,7 +30,11 @@
30#include "Directory.hh" 30#include "Directory.hh"
31#include "I18n.hh" 31#include "I18n.hh"
32 32
33#include <cstdio> 33#ifdef HAVE_CSTDIO
34 #include <cstdio>
35#else
36 #include <stdio.h>
37#endif
34#include <memory> 38#include <memory>
35#include <iostream> 39#include <iostream>
36 40
diff --git a/src/FbTk/ThemeItems.hh b/src/FbTk/ThemeItems.hh
index f17cba6..259ccc7 100644
--- a/src/FbTk/ThemeItems.hh
+++ b/src/FbTk/ThemeItems.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: ThemeItems.hh,v 1.7 2004/08/26 16:37:48 rathnor Exp $ 22// $Id: ThemeItems.hh,v 1.8 2004/08/31 15:26:39 rathnor Exp $
23 23
24/// @file implements common theme items 24/// @file implements common theme items
25 25
@@ -34,7 +34,11 @@
34#include "Image.hh" 34#include "Image.hh"
35 35
36#include <string> 36#include <string>
37#include <cstdio> 37#ifdef HAVE_CSTDIO
38 #include <cstdio>
39#else
40 #include <stdio.h>
41#endif
38#include <iostream> 42#include <iostream>
39namespace FbTk { 43namespace FbTk {
40 44
diff --git a/src/FbTk/Timer.cc b/src/FbTk/Timer.cc
index efecc5e..9ac0824 100644
--- a/src/FbTk/Timer.cc
+++ b/src/FbTk/Timer.cc
@@ -38,7 +38,11 @@
38#include <sys/time.h> 38#include <sys/time.h>
39#include <sys/types.h> 39#include <sys/types.h>
40#include <unistd.h> 40#include <unistd.h>
41#include <cassert> 41#ifdef HAVE_CASSERT
42 #include <cassert>
43#else
44 #include <assert.h>
45#endif
42 46
43namespace FbTk { 47namespace FbTk {
44 48
diff --git a/src/FbTk/Timer.hh b/src/FbTk/Timer.hh
index eb6f02a..b337b24 100644
--- a/src/FbTk/Timer.hh
+++ b/src/FbTk/Timer.hh
@@ -27,7 +27,11 @@
27 27
28#include "RefCount.hh" 28#include "RefCount.hh"
29 29
30#include <ctime> 30#ifdef HAVE_CTIME
31 #include <ctime>
32#else
33 #include <time.h>
34#endif
31#include <list> 35#include <list>
32 36
33#ifdef HAVE_CONFIG_H 37#ifdef HAVE_CONFIG_H
diff --git a/src/FbTk/XFontImp.cc b/src/FbTk/XFontImp.cc
index 195730d..0818634 100644
--- a/src/FbTk/XFontImp.cc
+++ b/src/FbTk/XFontImp.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: XFontImp.cc,v 1.8 2004/08/10 11:58:22 fluxgen Exp $ 22// $Id: XFontImp.cc,v 1.9 2004/08/31 15:26:39 rathnor Exp $
23 23
24#include "XFontImp.hh" 24#include "XFontImp.hh"
25#include "App.hh" 25#include "App.hh"
@@ -31,7 +31,11 @@
31 31
32#include <iostream> 32#include <iostream>
33#include <new> 33#include <new>
34#include <cstdio> 34#ifdef HAVE_CSTDIO
35 #include <cstdio>
36#else
37 #include <stdio.h>
38#endif
35using namespace std; 39using namespace std;
36 40
37namespace FbTk { 41namespace FbTk {
diff --git a/src/FbTk/XmbFontImp.cc b/src/FbTk/XmbFontImp.cc
index b6f8941..7afe37c 100644
--- a/src/FbTk/XmbFontImp.cc
+++ b/src/FbTk/XmbFontImp.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: XmbFontImp.cc,v 1.9 2004/08/28 18:10:19 rathnor Exp $ 22// $Id: XmbFontImp.cc,v 1.10 2004/08/31 15:26:39 rathnor Exp $
23 23
24#include "XmbFontImp.hh" 24#include "XmbFontImp.hh"
25 25
@@ -38,10 +38,22 @@
38#define _GNU_SOURCE 38#define _GNU_SOURCE
39#endif // _GNU_SOURCE 39#endif // _GNU_SOURCE
40 40
41#include <cstdio> 41#ifdef HAVE_CSTDIO
42#include <cstdarg> 42 #include <cstdio>
43#else
44 #include <stdio.h>
45#endif
46#ifdef HAVE_CSTDARG
47 #include <cstdarg>
48#else
49 #include <stdarg.h>
50#endif
43#include <iostream> 51#include <iostream>
44#include <cstring> 52#ifdef HAVE_CSTRING
53 #include <cstring>
54#else
55 #include <string.h>
56#endif
45 57
46using namespace std; 58using namespace std;
47 59
diff --git a/src/IntResMenuItem.cc b/src/IntResMenuItem.cc
index 0074409..292b768 100644
--- a/src/IntResMenuItem.cc
+++ b/src/IntResMenuItem.cc
@@ -19,11 +19,15 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: IntResMenuItem.cc,v 1.3 2004/06/10 17:24:24 fluxgen Exp $ 22// $Id: IntResMenuItem.cc,v 1.4 2004/08/31 15:26:38 rathnor Exp $
23 23
24#include "IntResMenuItem.hh" 24#include "IntResMenuItem.hh"
25#include "PixmapWithMask.hh" 25#include "PixmapWithMask.hh"
26#include <cstdio> 26#ifdef HAVE_CSTDIO
27 #include <cstdio>
28#else
29 #include <stdio.h>
30#endif
27 31
28namespace { 32namespace {
29 33
diff --git a/src/Keys.cc b/src/Keys.cc
index aef2b8f..8b9d1ea 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22//$Id: Keys.cc,v 1.43 2004/06/07 11:46:04 rathnor Exp $ 22//$Id: Keys.cc,v 1.44 2004/08/31 15:26:38 rathnor Exp $
23 23
24 24
25#include "Keys.hh" 25#include "Keys.hh"
@@ -41,10 +41,26 @@
41#include <ctype.h> 41#include <ctype.h>
42#endif // HAVE_CTYPE_H 42#endif // HAVE_CTYPE_H
43 43
44#include <cstdio> 44#ifdef HAVE_CSTDIO
45#include <cstdlib> 45 #include <cstdio>
46#include <cerrno> 46#else
47#include <cstring> 47 #include <stdio.h>
48#endif
49#ifdef HAVE_CSTDLIB
50 #include <cstdlib>
51#else
52 #include <stdlib.h>
53#endif
54#ifdef HAVE_CERRNO
55 #include <cerrno>
56#else
57 #include <errno.h>
58#endif
59#ifdef HAVE_CSTRING
60 #include <cstring>
61#else
62 #include <string.h>
63#endif
48 64
49#ifdef HAVE_SYS_TYPES_H 65#ifdef HAVE_SYS_TYPES_H
50#include <sys/types.h> 66#include <sys/types.h>
@@ -69,7 +85,11 @@
69#include <iostream> 85#include <iostream>
70#include <fstream> 86#include <fstream>
71#include <vector> 87#include <vector>
72#include <cassert> 88#ifdef HAVE_CASSERT
89 #include <cassert>
90#else
91 #include <assert.h>
92#endif
73#include <memory> 93#include <memory>
74 94
75using namespace std; 95using namespace std;
diff --git a/src/Screen.hh b/src/Screen.hh
index 26938df..b81110f 100644
--- a/src/Screen.hh
+++ b/src/Screen.hh
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.hh,v 1.142 2004/06/21 15:23:42 rathnor Exp $ 25// $Id: Screen.hh,v 1.143 2004/08/31 15:26:38 rathnor Exp $
26 26
27#ifndef SCREEN_HH 27#ifndef SCREEN_HH
28#define SCREEN_HH 28#define SCREEN_HH
@@ -40,7 +40,11 @@
40#include <X11/Xlib.h> 40#include <X11/Xlib.h>
41#include <X11/Xresource.h> 41#include <X11/Xresource.h>
42 42
43#include <cstdio> 43#ifdef HAVE_CSTDIO
44 #include <cstdio>
45#else
46 #include <stdio.h>
47#endif
44#include <string> 48#include <string>
45#include <list> 49#include <list>
46#include <vector> 50#include <vector>
diff --git a/src/Shape.cc b/src/Shape.cc
index bddb784..22156f4 100644
--- a/src/Shape.cc
+++ b/src/Shape.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Shape.cc,v 1.12 2004/08/10 19:34:35 fluxgen Exp $ 22// $Id: Shape.cc,v 1.13 2004/08/31 15:26:38 rathnor Exp $
23 23
24#include "Shape.hh" 24#include "Shape.hh"
25 25
@@ -28,7 +28,11 @@
28#include "FbTk/GContext.hh" 28#include "FbTk/GContext.hh"
29#include "FbTk/FbPixmap.hh" 29#include "FbTk/FbPixmap.hh"
30 30
31#include <cstring> 31#ifdef HAVE_CSTRING
32 #include <cstring>
33#else
34 #include <string.h>
35#endif
32 36
33#include <X11/Xutil.h> 37#include <X11/Xutil.h>
34#ifdef HAVE_CONFIG_H 38#ifdef HAVE_CONFIG_H
diff --git a/src/Slit.cc b/src/Slit.cc
index b0313f4..4068bca 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Slit.cc,v 1.97 2004/08/30 11:34:56 akir Exp $ 25// $Id: Slit.cc,v 1.98 2004/08/31 15:26:38 rathnor Exp $
26 26
27#include "Slit.hh" 27#include "Slit.hh"
28 28
@@ -61,7 +61,11 @@
61 61
62#include <algorithm> 62#include <algorithm>
63#include <iostream> 63#include <iostream>
64#include <cassert> 64#ifdef HAVE_CASSERT
65 #include <cassert>
66#else
67 #include <assert.h>
68#endif
65 69
66#ifdef HAVE_SYS_STAT_H 70#ifdef HAVE_SYS_STAT_H
67#include <sys/types.h> 71#include <sys/types.h>
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 97dfea3..e504a9a 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Toolbar.cc,v 1.150 2004/08/29 12:33:53 rathnor Exp $ 25// $Id: Toolbar.cc,v 1.151 2004/08/31 15:26:38 rathnor Exp $
26 26
27#include "Toolbar.hh" 27#include "Toolbar.hh"
28 28
@@ -62,7 +62,11 @@
62#include <X11/Xutil.h> 62#include <X11/Xutil.h>
63#include <X11/keysym.h> 63#include <X11/keysym.h>
64 64
65#include <cstring> 65#ifdef HAVE_CSTRING
66 #include <cstring>
67#else
68 #include <string.h>
69#endif
66#include <iterator> 70#include <iterator>
67 71
68using namespace std; 72using namespace std;
diff --git a/src/WinClient.cc b/src/WinClient.cc
index a31094e..fc8a018 100644
--- a/src/WinClient.cc
+++ b/src/WinClient.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: WinClient.cc,v 1.41 2004/08/10 13:36:07 fluxgen Exp $ 22// $Id: WinClient.cc,v 1.42 2004/08/31 15:26:38 rathnor Exp $
23 23
24#include "WinClient.hh" 24#include "WinClient.hh"
25 25
@@ -35,7 +35,11 @@
35#include <iostream> 35#include <iostream>
36#include <algorithm> 36#include <algorithm>
37#include <iterator> 37#include <iterator>
38#include <cassert> 38#ifdef HAVE_CASSERT
39 #include <cassert>
40#else
41 #include <assert.h>
42#endif
39 43
40using namespace std; 44using namespace std;
41 45
diff --git a/src/Window.cc b/src/Window.cc
index c3f6190..8187c15 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.cc,v 1.297 2004/08/29 12:35:29 rathnor Exp $ 25// $Id: Window.cc,v 1.298 2004/08/31 15:26:38 rathnor Exp $
26 26
27#include "Window.hh" 27#include "Window.hh"
28 28
@@ -61,10 +61,22 @@
61#include <X11/Xatom.h> 61#include <X11/Xatom.h>
62#include <X11/keysym.h> 62#include <X11/keysym.h>
63 63
64#include <cstring> 64#ifdef HAVE_CSTRING
65#include <cstdio> 65 #include <cstring>
66#else
67 #include <string.h>
68#endif
69#ifdef HAVE_CSTDIO
70 #include <cstdio>
71#else
72 #include <stdio.h>
73#endif
66#include <iostream> 74#include <iostream>
67#include <cassert> 75#ifdef HAVE_CASSERT
76 #include <cassert>
77#else
78 #include <assert.h>
79#endif
68#include <functional> 80#include <functional>
69#include <algorithm> 81#include <algorithm>
70 82
diff --git a/src/Workspace.cc b/src/Workspace.cc
index 18a2ba5..cafdb0c 100644
--- a/src/Workspace.cc
+++ b/src/Workspace.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Workspace.cc,v 1.98 2004/06/21 09:53:01 rathnor Exp $ 25// $Id: Workspace.cc,v 1.99 2004/08/31 15:26:39 rathnor Exp $
26 26
27#include "Workspace.hh" 27#include "Workspace.hh"
28 28
@@ -48,8 +48,16 @@
48#include <X11/Xlib.h> 48#include <X11/Xlib.h>
49#include <X11/Xatom.h> 49#include <X11/Xatom.h>
50 50
51#include <cstdio> 51#ifdef HAVE_CSTDIO
52#include <cstring> 52 #include <cstdio>
53#else
54 #include <stdio.h>
55#endif
56#ifdef HAVE_CSTRING
57 #include <cstring>
58#else
59 #include <string.h>
60#endif
53 61
54#include <algorithm> 62#include <algorithm>
55#include <iostream> 63#include <iostream>
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index 9715ff9..454cb49 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: WorkspaceCmd.cc,v 1.12 2004/08/10 12:08:31 fluxgen Exp $ 23// $Id: WorkspaceCmd.cc,v 1.13 2004/08/31 15:26:39 rathnor Exp $
24 24
25#include "WorkspaceCmd.hh" 25#include "WorkspaceCmd.hh"
26 26
@@ -32,7 +32,11 @@
32 32
33#include "FbTk/KeyUtil.hh" 33#include "FbTk/KeyUtil.hh"
34 34
35#include <cmath> 35#ifdef HAVE_CMATH
36 #include <cmath>
37#else
38 #include <math.h>
39#endif
36#include <algorithm> 40#include <algorithm>
37#include <functional> 41#include <functional>
38#include <iostream> 42#include <iostream>
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 07c86fd..a484434 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: fluxbox.cc,v 1.250 2004/08/27 17:24:49 rathnor Exp $ 25// $Id: fluxbox.cc,v 1.251 2004/08/31 15:26:39 rathnor Exp $
26 26
27#include "fluxbox.hh" 27#include "fluxbox.hh"
28 28
@@ -94,9 +94,21 @@ class Toolbar { };
94 94
95// system headers 95// system headers
96 96
97#include <cstdio> 97#ifdef HAVE_CSTDIO
98#include <cstdlib> 98 #include <cstdio>
99#include <cstring> 99#else
100 #include <stdio.h>
101#endif
102#ifdef HAVE_CSTDLIB
103 #include <cstdlib>
104#else
105 #include <stdlib.h>
106#endif
107#ifdef HAVE_CSTRING
108 #include <cstring>
109#else
110 #include <string.h>
111#endif
100 112
101#ifdef HAVE_UNISTD_H 113#ifdef HAVE_UNISTD_H
102#include <sys/types.h> 114#include <sys/types.h>
diff --git a/src/fluxbox.hh b/src/fluxbox.hh
index d61452a..96b883d 100644
--- a/src/fluxbox.hh
+++ b/src/fluxbox.hh
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: fluxbox.hh,v 1.89 2004/07/15 09:52:14 fluxgen Exp $ 25// $Id: fluxbox.hh,v 1.90 2004/08/31 15:26:39 rathnor Exp $
26 26
27#ifndef FLUXBOX_HH 27#ifndef FLUXBOX_HH
28#define FLUXBOX_HH 28#define FLUXBOX_HH
@@ -36,7 +36,11 @@
36#include <X11/Xlib.h> 36#include <X11/Xlib.h>
37#include <X11/Xresource.h> 37#include <X11/Xresource.h>
38 38
39#include <cstdio> 39#ifdef HAVE_CSTDIO
40 #include <cstdio>
41#else
42 #include <stdio.h>
43#endif
40 44
41#ifdef HAVE_CONFIG_H 45#ifdef HAVE_CONFIG_H
42#include "config.h" 46#include "config.h"
diff --git a/src/main.cc b/src/main.cc
index 68bb62f..3c9dc7f 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: main.cc,v 1.30 2004/06/07 11:46:04 rathnor Exp $ 23// $Id: main.cc,v 1.31 2004/08/31 15:26:39 rathnor Exp $
24 24
25#include "fluxbox.hh" 25#include "fluxbox.hh"
26#include "version.h" 26#include "version.h"
@@ -38,9 +38,21 @@
38#define _GNU_SOURCE 38#define _GNU_SOURCE
39#endif // _GNU_SOURCE 39#endif // _GNU_SOURCE
40 40
41#include <cstdio> 41#ifdef HAVE_CSTDIO
42#include <cstdlib> 42 #include <cstdio>
43#include <cstring> 43#else
44 #include <stdio.h>
45#endif
46#ifdef HAVE_CSTDLIB
47 #include <cstdlib>
48#else
49 #include <stdlib.h>
50#endif
51#ifdef HAVE_CSTRING
52 #include <cstring>
53#else
54 #include <string.h>
55#endif
44#include <iostream> 56#include <iostream>
45#include <fstream> 57#include <fstream>
46#include <stdexcept> 58#include <stdexcept>
diff --git a/src/tests/Resourcetest.cc b/src/tests/Resourcetest.cc
index f82c4b4..99dfc54 100644
--- a/src/tests/Resourcetest.cc
+++ b/src/tests/Resourcetest.cc
@@ -28,7 +28,11 @@
28 28
29#include <string> 29#include <string>
30#include <iostream> 30#include <iostream>
31#include <cstdio> 31#ifdef HAVE_CSTDIO
32 #include <cstdio>
33#else
34 #include <stdio.h>
35#endif
32 36
33using namespace std; 37using namespace std;
34 38
diff --git a/src/tests/signaltest.cc b/src/tests/signaltest.cc
index ef7643f..cc838b0 100644
--- a/src/tests/signaltest.cc
+++ b/src/tests/signaltest.cc
@@ -22,7 +22,11 @@
22#include "../FbTk/SignalHandler.hh" 22#include "../FbTk/SignalHandler.hh"
23 23
24#include <iostream> 24#include <iostream>
25#include <cassert> 25#ifdef HAVE_CASSERT
26 #include <cassert>
27#else
28 #include <assert.h>
29#endif
26 30
27using namespace std; 31using namespace std;
28using namespace FbTk; 32using namespace FbTk;
diff --git a/util/bsetroot.cc b/util/bsetroot.cc
index 9735e05..86d1efb 100644
--- a/util/bsetroot.cc
+++ b/util/bsetroot.cc
@@ -18,7 +18,7 @@
18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 20
21// $Id: bsetroot.cc,v 1.21 2004/06/08 13:15:30 rathnor Exp $ 21// $Id: bsetroot.cc,v 1.22 2004/08/31 15:26:40 rathnor Exp $
22 22
23#include "bsetroot.hh" 23#include "bsetroot.hh"
24 24
@@ -32,9 +32,21 @@
32 32
33#include <X11/Xatom.h> 33#include <X11/Xatom.h>
34 34
35#include <cstring> 35#ifdef HAVE_CSTRING
36#include <cstdlib> 36 #include <cstring>
37#include <cstdio> 37#else
38 #include <string.h>
39#endif
40#ifdef HAVE_CSTDLIB
41 #include <cstdlib>
42#else
43 #include <stdlib.h>
44#endif
45#ifdef HAVE_CSTDIO
46 #include <cstdio>
47#else
48 #include <stdio.h>
49#endif
38#include <iostream> 50#include <iostream>
39 51
40using namespace std; 52using namespace std;
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc
index 025440a..09efd12 100644
--- a/util/fbrun/FbRun.cc
+++ b/util/fbrun/FbRun.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbRun.cc,v 1.30 2004/04/22 21:01:58 fluxgen Exp $ 22// $Id: FbRun.cc,v 1.31 2004/08/31 15:26:40 rathnor Exp $
23 23
24#include "FbRun.hh" 24#include "FbRun.hh"
25 25
@@ -48,7 +48,11 @@
48#include <iterator> 48#include <iterator>
49#include <fstream> 49#include <fstream>
50#include <algorithm> 50#include <algorithm>
51#include <cassert> 51#ifdef HAVE_CASSERT
52 #include <cassert>
53#else
54 #include <assert.h>
55#endif
52 56
53using namespace std; 57using namespace std;
54FbRun::FbRun(int x, int y, size_t width): 58FbRun::FbRun(int x, int y, size_t width):