* OpenBSD support (Toni Spets <toni.spets@gmail.com>)

This commit is contained in:
Tim Angus 2007-10-12 23:27:47 +00:00
parent aa5e852056
commit 8f43965e13
2 changed files with 82 additions and 0 deletions

View file

@ -192,6 +192,30 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#endif
//=============================================================== OpenBSD ===
#ifdef __OpenBSD__
#include <machine/endian.h>
#define OS_STRING "openbsd"
#define ID_INLINE inline
#define PATH_SEP '/'
#ifdef __i386__
#define ARCH_STRING "i386"
#endif
#if BYTE_ORDER == BIG_ENDIAN
#define Q3_BIG_ENDIAN
#else
#define Q3_LITTLE_ENDIAN
#endif
#define DLL_EXT ".so"
#endif
//================================================================ NetBSD ===
// This is very much like the FreeBSD one and can probably be merged