Skip to content

Commit

Permalink
Forward-declare Event and Listener to omit some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
smallmodel committed Nov 14, 2023
1 parent 096692f commit 771ee1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/uilib/ui_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ typedef enum {
#define SORT_GAME 3
#define SORT_PING 4

#ifndef __cplusplus
struct Event;
struct Listener;
#endif

typedef struct uiimport_s {
uihandle_t( *Rend_RegisterMaterial )( const char *name );
uihandle_t( *Rend_RefreshMaterial )( const char *name );
Expand Down

0 comments on commit 771ee1b

Please sign in to comment.