1
0
forked from 0ad/0ad

read_le16/32 can't be inline in source and extern in header - gcc won't export them

This was SVN commit r450.
This commit is contained in:
Simon Brenner 2004-06-09 14:11:35 +00:00
parent 5366bafe3f
commit a6246b9045

View File

@ -22,7 +22,8 @@
#include "sdl.h" // endian functions
#include <assert.h>
#include <stdlib.h>
#include <string.h>
// more powerful atexit, with 0 or 1 parameters.
// callable before libc initialized, frees up the real atexit table,
@ -306,7 +307,7 @@ u16 fp_to_u16(double in)
inline u16 read_le16(const void* p)
u16 read_le16(const void* p)
{
#if SDL_BYTE_ORDER == SDL_BIG_ENDIAN
const u8* _p = (const u8*)p;
@ -317,7 +318,7 @@ inline u16 read_le16(const void* p)
}
inline u32 read_le32(const void* p)
u32 read_le32(const void* p)
{
#if SDL_BYTE_ORDER == SDL_BIG_ENDIAN
return SDL_Swap32(*(u32*)p);