mapi: move some #includes from .h file to .c files
authorBrian Paul <brianp@vmware.com>
Fri, 13 Mar 2015 19:12:12 +0000 (13:12 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 18 Mar 2015 15:01:50 +0000 (09:01 -0600)
Just include things where they're needed.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mapi/glapi/glapi_getproc.c
src/mapi/glapi/glapi_nop.c
src/mapi/glapi/glapi_priv.h

index bfde92cf22775e1be3a84c3d48eaaeed96b142cc..524a771ca436e2f7a67ada3ef597fb9718b17053 100644 (file)
@@ -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.
  */
index 0041ed5a876b8b5d554e30574acebbc241b5a231..13db310b30330f146538b649686f2aaf1f134e0c 100644 (file)
@@ -44,6 +44,7 @@
  */
 
 
+#include <stdlib.h>
 #include <string.h>
 #include "glapi/glapi_priv.h"
 
index d3682603d6f36db01ec7703b3f1b481c36d5bc4d..50f710edc8af82e59594c01919ad68b074e6a3b0 100644 (file)
@@ -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>