summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2008-07-28 20:32:51 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2008-07-28 20:32:51 +0000
commit052f99d3790b2e600a344ffd6ead41d5c5492744 (patch)
treebf4656ec6e2351a09ba612eba12ab9bc9d80022f
parent9be511ce2cde018c4feae2a6be5f34959c7a50ef (diff)
downloadnetsurf-052f99d3790b2e600a344ffd6ead41d5c5492744.tar.gz
netsurf-052f99d3790b2e600a344ffd6ead41d5c5492744.tar.bz2
Include headers we need, rather than depending on (optional) features doing so.
svn path=/trunk/netsurf/; revision=4774
-rw-r--r--css/css.c2
-rw-r--r--css/ruleset.c1
-rw-r--r--desktop/browser.c1
-rw-r--r--desktop/frames.c1
-rw-r--r--desktop/selection.c1
-rw-r--r--gtk/gtk_download.c4
-rw-r--r--gtk/gtk_selection.c2
-rw-r--r--render/html_redraw.c1
-rw-r--r--render/layout.c1
-rw-r--r--render/textplain.c2
10 files changed, 16 insertions, 0 deletions
diff --git a/css/css.c b/css/css.c
index 6df179de8..b47635737 100644
--- a/css/css.c
+++ b/css/css.c
@@ -90,6 +90,8 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
+#include <math.h>
+#include <limits.h>
#define CSS_INTERNALS
#undef NDEBUG
#include "utils/config.h"
diff --git a/css/ruleset.c b/css/ruleset.c
index 92686a384..092190f9a 100644
--- a/css/ruleset.c
+++ b/css/ruleset.c
@@ -35,6 +35,7 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
+#include <math.h>
#define CSS_INTERNALS
#define NDEBUG
#include "css/css.h"
diff --git a/desktop/browser.c b/desktop/browser.c
index 495cdf9ee..9f396c500 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -31,6 +31,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include <sys/select.h>
#include "curl/curl.h"
#include "utils/config.h"
diff --git a/desktop/frames.c b/desktop/frames.c
index 1d9e2c2fc..0244a0045 100644
--- a/desktop/frames.c
+++ b/desktop/frames.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <math.h>
#include "utils/config.h"
#include "desktop/browser.h"
#include "desktop/frames.h"
diff --git a/desktop/selection.c b/desktop/selection.c
index 0dc8e493e..a66b12afd 100644
--- a/desktop/selection.c
+++ b/desktop/selection.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
+#include <string.h>
#include "desktop/gui.h"
#include "desktop/plotters.h"
diff --git a/gtk/gtk_download.c b/gtk/gtk_download.c
index 6657ce1fc..5af5482bc 100644
--- a/gtk/gtk_download.c
+++ b/gtk/gtk_download.c
@@ -16,6 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+
#include <gtk/gtk.h>
#include <glib/gstdio.h>
diff --git a/gtk/gtk_selection.c b/gtk/gtk_selection.c
index cdb43ae15..b6a1227cb 100644
--- a/gtk/gtk_selection.c
+++ b/gtk/gtk_selection.c
@@ -15,6 +15,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+
+#include <string.h>
#include <gtk/gtk.h>
#include "utils/log.h"
diff --git a/render/html_redraw.c b/render/html_redraw.c
index 5169faf4a..f53b425ee 100644
--- a/render/html_redraw.c
+++ b/render/html_redraw.c
@@ -28,6 +28,7 @@
#include <assert.h>
#include <stdbool.h>
#include <string.h>
+#include <math.h>
#include "utils/config.h"
#include "content/content.h"
#include "css/css.h"
diff --git a/render/layout.c b/render/layout.c
index 300513f66..7d955011c 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -38,6 +38,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <math.h>
#include "css/css.h"
#include "content/content.h"
#include "desktop/gui.h"
diff --git a/render/textplain.c b/render/textplain.c
index a16f834c2..1feeb35fe 100644
--- a/render/textplain.c
+++ b/render/textplain.c
@@ -24,6 +24,8 @@
#include <assert.h>
#include <errno.h>
#include <stddef.h>
+#include <string.h>
+#include <math.h>
#define LIBICONV_PLUG
#include <iconv.h>
#include "content/content.h"