[openbox] [PATCH] Missing #include
Mads Martin Joergensen
mmj at panther.mmj.dk
Tue Feb 25 02:21:51 EST 2003
* Mads Martin Joergensen <mmj at panther.mmj.dk> [Feb 25. 2003 07:30]:
> Hey together,
>
> Openbox-2.2.3 fails on newer gcc's because of the following missing
> include, which I just confirmed is missing in the 2_2_4 branch.
Actually I did not cover all of them:
--- openbox-2.2.3/src/Configuration.cc
+++ openbox-2.2.3/src/Configuration.cc
@@ -28,6 +28,8 @@
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif // HAVE_STDLIB_H
+
+#include <assert.h>
}
#include "Configuration.hh"
--- openbox-2.2.3/src/Window.cc
+++ openbox-2.2.3/src/Window.cc
@@ -42,6 +42,8 @@
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif // HAVE_STDLIB_H
+
+#include <assert.h>
}
#include "i18n.hh"
--- openbox-2.2.3/util/epist/keytree.cc
+++ openbox-2.2.3/util/epist/keytree.cc
@@ -24,6 +24,10 @@
# include "../../config.h"
#endif // HAVE_CONFIG_H
+extern "C" {
+#include <assert.h>
+}
+
#include "keytree.hh"
#include "epist.hh"
#include "config.hh"
--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.
More information about the openbox
mailing list