aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-03-13 13:12:12 -0600
committerBrian Paul <[email protected]>2015-03-18 09:01:50 -0600
commit9fbbd60c1da4467683d93540c64164ad337ce454 (patch)
treebef376804e82a6fd06f93c402304685db8aa9e9c /src/mapi
parent4009d22b61e76850b1b725f4e491da05c2406fa4 (diff)
mapi: move some #includes from .h file to .c files
Just include things where they're needed. Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/glapi_getproc.c4
-rw-r--r--src/mapi/glapi/glapi_nop.c1
-rw-r--r--src/mapi/glapi/glapi_priv.h3
3 files changed, 5 insertions, 3 deletions
diff --git a/src/mapi/glapi/glapi_getproc.c b/src/mapi/glapi/glapi_getproc.c
index bfde92cf227..524a771ca43 100644
--- a/src/mapi/glapi/glapi_getproc.c
+++ b/src/mapi/glapi/glapi_getproc.c
@@ -30,6 +30,9 @@
*/
+#include <assert.h>
+#include <string.h>
+#include <stdlib.h>
#include "glapi/glapi_priv.h"
#include "glapi/glapitable.h"
@@ -37,6 +40,7 @@
#define FIRST_DYNAMIC_OFFSET (sizeof(struct _glapi_table) / sizeof(void *))
+
/**********************************************************************
* Static function management.
*/
diff --git a/src/mapi/glapi/glapi_nop.c b/src/mapi/glapi/glapi_nop.c
index 0041ed5a876..13db310b303 100644
--- a/src/mapi/glapi/glapi_nop.c
+++ b/src/mapi/glapi/glapi_nop.c
@@ -44,6 +44,7 @@
*/
+#include <stdlib.h>
#include <string.h>
#include "glapi/glapi_priv.h"
diff --git a/src/mapi/glapi/glapi_priv.h b/src/mapi/glapi/glapi_priv.h
index d3682603d6f..50f710edc8a 100644
--- a/src/mapi/glapi/glapi_priv.h
+++ b/src/mapi/glapi/glapi_priv.h
@@ -26,9 +26,6 @@
#ifndef _GLAPI_PRIV_H
#define _GLAPI_PRIV_H
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>