mirror of https://github.com/ZDoom/gzdoom-gles.git
Use dummy Get...() functions for all Intel targets
64-bit Intel targets built with GCC/Clang were using strict memory alignment versions of GetShort(), GetInt(), GetBigInt() functions
This commit is contained in:
parent
47b276024e
commit
e728634497
|
@ -177,7 +177,7 @@ inline int BigLong (int x)
|
||||||
|
|
||||||
|
|
||||||
// Data accessors, since some data is highly likely to be unaligned.
|
// Data accessors, since some data is highly likely to be unaligned.
|
||||||
#if defined(_M_IX86) || defined(_M_X64) || defined(__i386__)
|
#if defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || defined(__x86_64__)
|
||||||
inline int GetShort(const unsigned char *foo)
|
inline int GetShort(const unsigned char *foo)
|
||||||
{
|
{
|
||||||
return *(const short *)foo;
|
return *(const short *)foo;
|
||||||
|
|
Loading…
Reference in New Issue