From: Jason Ekstrand Date: Wed, 29 Apr 2015 21:48:12 +0000 (-0700) Subject: glsl/types: Expose the function_param and struct_field structs to C X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe550f0738cf2052d5f0bc7d23de46a79f8ae04b;p=mesa.git 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. --- 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 */