Skip to content

Commit

Permalink
Use static inline to fix build fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 21, 2024
1 parent 98ab8c1 commit bcc0cc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trunk/3rdparty/st-srs/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,21 @@ typedef struct _st_clist {
} _st_clist_t;

/* Initialize a circular list */
inline void st_clist_init(_st_clist_t *l)
static inline void st_clist_init(_st_clist_t *l)
{
l->next = l;
l->prev = l;
}

/* Remove the element "_e" from it's circular list */
inline void st_clist_remove(_st_clist_t *e)
static inline void st_clist_remove(_st_clist_t *e)
{
e->prev->next = e->next;
e->next->prev = e->prev;
}

/* Insert element "_e" into the list, before "_l" */
inline void st_clist_insert_before(_st_clist_t *e, _st_clist_t *l)
static inline void st_clist_insert_before(_st_clist_t *e, _st_clist_t *l)
{
e->next = l;
e->prev = l->prev;
Expand All @@ -107,7 +107,7 @@ inline void st_clist_insert_before(_st_clist_t *e, _st_clist_t *l)
}

/* Insert element "_e" into the list, after "_l" */
inline void st_clist_insert_after(_st_clist_t *e, _st_clist_t *l)
static inline void st_clist_insert_after(_st_clist_t *e, _st_clist_t *l)
{
e->next = l->next;
e->prev = l;
Expand Down

0 comments on commit bcc0cc0

Please sign in to comment.