aboutsummaryrefslogtreecommitdiff
path: root/include/IrrCompileConfig.h
diff options
context:
space:
mode:
authorJosiahWI <41302989+JosiahWI@users.noreply.github.com>2021-08-28 11:12:40 -0500
committerGitHub <noreply@github.com>2021-08-28 18:12:40 +0200
commit2dc2846c3f8ec461c95e3b5e4f8e672f08eb31b5 (patch)
tree01eab63126e407b45da07ab4339e6edbb72e4cc7 /include/IrrCompileConfig.h
parent9690c1b3e30410f4780dc6466ae474cc1350f82a (diff)
downloadirrlicht-2dc2846c3f8ec461c95e3b5e4f8e672f08eb31b5.tar.xz
Add support for OpenBSD
There were three patches OpenBSD applied to build Irrlicht, and I implemented two of them. The first required turning off joystick events on OpenBSD, and the second (which I didn't confirm was necessary) required some defines in os.h. The third patch would have added an include to CIrrDeviceLinux.cpp, but the file had changed quite a bit and I could not tell whether this was necessary, so I left it out, and it appears Irrlicht builds fine.
Diffstat (limited to 'include/IrrCompileConfig.h')
-rw-r--r--include/IrrCompileConfig.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/IrrCompileConfig.h b/include/IrrCompileConfig.h
index fde88be..6dc2861 100644
--- a/include/IrrCompileConfig.h
+++ b/include/IrrCompileConfig.h
@@ -142,7 +142,9 @@
//! Define _IRR_COMPILE_WITH_JOYSTICK_SUPPORT_ if you want joystick events.
+#if !(defined(__FreeBSD__) || defined(__OpenBSD__))
#define _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
+#endif
#ifdef NO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_
#undef _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
#endif