Commit e0bec83b authored by hybrid's avatar hybrid

Add openbsd define check.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2981 dfc29bdd-3216-0410-991c-e03cc46cb475
parent f9116eab
......@@ -19,7 +19,7 @@
#include <libkern/OSByteOrder.h>
#define bswap_16(X) OSReadSwapInt16(&X,0)
#define bswap_32(X) OSReadSwapInt32(&X,0)
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
#include <sys/endian.h>
#define bswap_16(X) bswap16(X)
#define bswap_32(X) bswap32(X)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment