summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-09-24 10:57:55 +0200
committerMichal Krol <[email protected]>2009-09-24 10:57:55 +0200
commit92e33569f39a2fa9061a0c35c233c1db33820033 (patch)
tree72841b48dce72cff41bd2558a045e48b389703a7
parent69fec23251740c3071ffc3fefc8981599bdb22ef (diff)
glsl/pp: Add forward decls to silence gcc warnings.
-rw-r--r--src/glsl/pp/sl_pp_macro.h3
-rw-r--r--src/glsl/pp/sl_pp_token.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_macro.h b/src/glsl/pp/sl_pp_macro.h
index 7af11c5ece7..e3ae2fc7125 100644
--- a/src/glsl/pp/sl_pp_macro.h
+++ b/src/glsl/pp/sl_pp_macro.h
@@ -31,6 +31,9 @@
#include "sl_pp_token.h"
+struct sl_pp_context;
+struct sl_pp_process_state;
+
struct sl_pp_macro_formal_arg {
int name;
struct sl_pp_macro_formal_arg *next;
diff --git a/src/glsl/pp/sl_pp_token.h b/src/glsl/pp/sl_pp_token.h
index cece30b62dd..29c7571711e 100644
--- a/src/glsl/pp/sl_pp_token.h
+++ b/src/glsl/pp/sl_pp_token.h
@@ -29,6 +29,8 @@
#define SL_PP_TOKEN_H
+struct sl_pp_context;
+
enum sl_pp_token {
SL_PP_WHITESPACE,
SL_PP_NEWLINE,