changeset 2545:9f325c631973

fix freebsd
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 17 Apr 2018 21:01:08 +0200
parents d5ca5a5abe12
children 6d5e36e1256f
files UnitTestsSources/UnitTestsMain.cpp
diffstat 1 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/UnitTestsSources/UnitTestsMain.cpp	Tue Apr 17 20:42:07 2018 +0200
+++ b/UnitTestsSources/UnitTestsMain.cpp	Tue Apr 17 21:01:08 2018 +0200
@@ -701,6 +701,18 @@
 #if defined(_WIN32) || defined(__APPLE__)
   ASSERT_EQ(Endianness_Little, Toolbox::DetectEndianness());
 
+  
+  /**
+   * FreeBSD.
+   **/
+  
+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
+#  if _BYTE_ORDER == _BIG_ENDIAN
+   ASSERT_EQ(Endianness_Big, Toolbox::DetectEndianness());
+#  else // _LITTLE_ENDIAN
+   ASSERT_EQ(Endianness_Little, Toolbox::DetectEndianness());
+#  endif
+
 
   /**
    * Linux.
@@ -718,18 +730,6 @@
   ASSERT_EQ(Endianness_Little, Toolbox::DetectEndianness());
 #  endif
 
-  
-  /**
-   * FreeBSD.
-   **/
-  
-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
-#  if _BYTE_ORDER == _BIG_ENDIAN
-   ASSERT_EQ(Endianness_Big, Toolbox::DetectEndianness());
-#  else // _LITTLE_ENDIAN
-   ASSERT_EQ(Endianness_Little, Toolbox::DetectEndianness());
-#  endif
-
 #else
 #error Support your platform here
 #endif