OSDN Git Service

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 bfde92c..524a771 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 0041ed5..13db310 100644 (file)
@@ -44,6 +44,7 @@
  */
 
 
+#include <stdlib.h>
 #include <string.h>
 #include "glapi/glapi_priv.h"
 
index d368260..50f710e 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>