1
0
mirror of https://github.com/minetest/minetest.git synced 2024-09-27 15:00:30 +02:00

slove macos missing endian.h

This commit is contained in:
qiukeren 2015-12-21 20:52:40 +08:00
parent d1c0aa1ce7
commit 45720943b1

View File

@ -26,7 +26,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "config.h"
#if HAVE_ENDIAN_H
#include <endian.h>
#if defined(__MACH__) && defined(__APPLE__)
#include <machine/endian.h>
#else
#include <endian.h>
#endif
#endif
#include <string.h> // for memcpy
#include <iostream>