mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
Remove _inline macro, as it's nonstandard way to define inline functions.
This commit is contained in:
@@ -37,7 +37,6 @@ GNU General Public License for more details.
|
||||
// Windows-specific
|
||||
#define __cdecl
|
||||
#define __stdcall
|
||||
#define _inline static inline
|
||||
|
||||
#if XASH_POSIX
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -41,7 +41,7 @@ GNU General Public License for more details.
|
||||
|
||||
#define LIST_HEAD_INIT( name ) { &(name), &(name) }
|
||||
|
||||
_inline void list_add__( hullnode_t *new, hullnode_t *prev, hullnode_t *next )
|
||||
static inline void list_add__( hullnode_t *new, hullnode_t *prev, hullnode_t *next )
|
||||
{
|
||||
next->prev = new;
|
||||
new->next = next;
|
||||
@@ -50,18 +50,18 @@ _inline void list_add__( hullnode_t *new, hullnode_t *prev, hullnode_t *next )
|
||||
}
|
||||
|
||||
// add the new entry after the give list entry
|
||||
_inline void list_add( hullnode_t *newobj, hullnode_t *head )
|
||||
static inline void list_add( hullnode_t *newobj, hullnode_t *head )
|
||||
{
|
||||
list_add__( newobj, head, head->next );
|
||||
}
|
||||
|
||||
// add the new entry before the given list entry (list is circular)
|
||||
_inline void list_add_tail( hullnode_t *newobj, hullnode_t *head )
|
||||
static inline void list_add_tail( hullnode_t *newobj, hullnode_t *head )
|
||||
{
|
||||
list_add__( newobj, head->prev, head );
|
||||
}
|
||||
|
||||
_inline void list_del( hullnode_t *entry )
|
||||
static inline void list_del( hullnode_t *entry )
|
||||
{
|
||||
entry->next->prev = entry->prev;
|
||||
entry->prev->next = entry->next;
|
||||
|
||||
@@ -20,7 +20,7 @@ GNU General Public License for more details.
|
||||
#ifdef IEEE_FLOAT
|
||||
// rhis function is only available for IEEE754 single-precision values
|
||||
// rhis is nearly identical to proper rounding, just -+0.5 is rounded to 0
|
||||
static _inline int16_t ftoi16( float x )
|
||||
static inline int16_t ftoi16( float x )
|
||||
{
|
||||
union
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user