[3.0] [bugfix] ios include Endian.h (#3161)

This commit is contained in:
江战
2020-12-29 09:52:43 +08:00
committed by GitHub
parent f85585890f
commit 9588ad3972
+2
View File
@@ -301,6 +301,8 @@ It should work same as apples CFSwapInt32LittleToHost(..)
#else
#if (CC_PLATFORM == CC_PLATFORM_MAC_OSX)
#include <machine/endian.h>
#elif (CC_PLATFORM == CC_PLATFORM_MAC_IOS)
#include <Endian.h>
#else
#include <endian.h>
#endif // (CC_PLATFORM == CC_PLATFORM_MAC_OSX)