Browse Source

Set LOVE_LINUX when compiling under BSD (see issue #867)

Not technically correct, but it seems to be working, sample size 1.
Bart van Strien 10 years ago
parent
commit
37f04a7f3d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/common/config.h

+ 4 - 0
src/common/config.h

@@ -36,6 +36,10 @@
 #		define LOVE_MACOSX 1
 #		define LOVE_MACOSX 1
 #	endif
 #	endif
 #endif
 #endif
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+// I know it's not linux, but it seems most "linux-only" code is bsd-compatible
+#	define LOVE_LINUX 1
+#endif
 
 
 // Endianness.
 // Endianness.
 #if defined(__i386__) || defined(__i386)
 #if defined(__i386__) || defined(__i386)