]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake2/qdata_heretic2/qcommon/arrayedlist.h
Centralise compile checks
[xonotic/netradiant.git] / tools / quake2 / qdata_heretic2 / qcommon / arrayedlist.h
index 25bf5483ee3c54785cb5a5bea0960332822ff631..9ef9705b4a52a5000dd20d96d729effbe5cd55ee 100644 (file)
@@ -33,13 +33,7 @@ typedef struct ArrayedListNode_s
 
 #define ARRAYEDLISTNODE_NULL -1
 
-static
-#ifdef _WIN32
-_inline
-#else
-inline
-#endif
-int GetFreeNode( ArrayedListNode_t *nodeArray, int max ){
+static GDEF_ATTRIBUTE_INLINE int GetFreeNode( ArrayedListNode_t *nodeArray, int max ){
        int i;
 
        for ( i = 0; i < max; ++i )
@@ -54,13 +48,7 @@ int GetFreeNode( ArrayedListNode_t *nodeArray, int max ){
        return -1;
 }
 
-static
-#ifdef _WIN32
-_inline
-#else
-inline
-#endif
-void FreeNode( ArrayedListNode_t *nodeArray, int index ){
+static GDEF_ATTRIBUTE_INLINE void FreeNode( ArrayedListNode_t *nodeArray, int index ){
        nodeArray[index].inUse = 0;
 }