From fe550f0738cf2052d5f0bc7d23de46a79f8ae04b Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 29 Apr 2015 14:48:12 -0700 Subject: [PATCH] glsl/types: Expose the function_param and struct_field structs to C Previously, they were hidden behind a #ifdef __cplusplus so C wouldn't find them. This commit simpliy moves the ifdef. --- src/glsl/glsl_types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h index 4d726c6bcf9..2d4718572af 100644 --- a/src/glsl/glsl_types.h +++ b/src/glsl/glsl_types.h @@ -742,6 +742,10 @@ private: /*@}*/ }; +#undef DECL_TYPE +#undef STRUCT_TYPE +#endif /* __cplusplus */ + struct glsl_struct_field { const struct glsl_type *type; const char *name; @@ -798,8 +802,4 @@ glsl_align(unsigned int a, unsigned int align) return (a + align - 1) / align * align; } -#undef DECL_TYPE -#undef STRUCT_TYPE -#endif /* __cplusplus */ - #endif /* GLSL_TYPES_H */ -- 2.30.2