gallium: Countour MSVC's pickyness for structures returned by value.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 22 Feb 2008 09:45:20 +0000 (18:45 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 22 Feb 2008 15:51:48 +0000 (00:51 +0900)
src/gallium/auxiliary/cso_cache/cso_cache.h

index 58664cd..b4f4f3a 100644 (file)
 #include "pipe/p_context.h"
 #include "pipe/p_state.h"
 
+#include "cso_hash.h" /* for cso_hash_iter, as MSVC requires structures returned by value to be fully defined */
+
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
   
-struct cso_hash;
-
-struct cso_hash_iter;
-
 struct cso_cache {
    struct cso_hash *blend_hash;
    struct cso_hash *depth_stencil_hash;