Fix OS detection
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Mon, 21 Nov 2016 20:24:37 +0000 (21:24 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Mon, 21 Nov 2016 20:24:37 +0000 (21:24 +0100)
nmrpd.h

diff --git a/nmrpd.h b/nmrpd.h
index 8d2c73074713d8aab97ce7857b2708393b048518..c57ef9c415dc198bf129e2bc85fd0d6183ec71a0 100644 (file)
--- a/nmrpd.h
+++ b/nmrpd.h
 
 #if defined(_WIN32) || defined(_WIN64)
 #      define NMRPFLASH_WINDOWS
+#elif defined(__APPLE__) && defined(__MACH__)
+#      define NMRPFLASH_OSX
+#      define NMRPFLASH_BSD
 #elif defined (__unix__)
 #      define NMRPFLASH_UNIX
 #      if defined(__linux__)
 #              define NMRPFLASH_LINUX
-#      elif defined(__APPLE__) && defined(__MACH__)
-#              define NMRPFLASH_OSX
-#              define NMRPFLASH_BSD
 #      elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
 #                      define NMRPFLASH_BSD
 #      else