Skip to content

Commit

Permalink
ci: fix msvc build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Nov 26, 2024
1 parent 78c5dde commit ccc702d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion 3rdparty/glsl-parser/glsl_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ struct glsl_parse_context {
// Create a new node for the AST. All values following 'code' will be
// placed in the node's child array.
//
struct glsl_node *new_glsl_node(struct glsl_parse_context *context, int code, ...) __attribute__ ((sentinel));

#if defined(__GNUC__)
#define ATTR_SENTINEL __attribute__((sentinel))
#else
#define ATTR_SENTINEL
#endif
struct glsl_node*
new_glsl_node(struct glsl_parse_context* context, int code, ...) ATTR_SENTINEL;

//
// Allocate memory in the parser's stack allocator
Expand Down

0 comments on commit ccc702d

Please sign in to comment.