Mercurial > hg > orthanc
diff UnitTestsSources/UnitTestsMain.cpp @ 1976:325772dadcd6
Macro "__linux" (now obsolete) replaced by macro "__linux__"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 14 Apr 2016 17:34:43 +0200 |
parents | 869a87c08673 |
children | e29aea2349b9 |
line wrap: on
line diff
--- a/UnitTestsSources/UnitTestsMain.cpp Tue Apr 12 18:30:55 2016 +0000 +++ b/UnitTestsSources/UnitTestsMain.cpp Thu Apr 14 17:34:43 2016 +0200 @@ -458,7 +458,7 @@ } -#if defined(__linux) +#if defined(__linux__) TEST(OrthancInitialization, AbsoluteDirectory) { ASSERT_EQ("/tmp/hello", Configuration::InterpretRelativePath("/tmp", "hello")); @@ -632,7 +632,7 @@ -#if defined(__linux) +#if defined(__linux__) #include <endian.h> #elif defined(__FreeBSD__) #include <machine/endian.h> @@ -657,7 +657,7 @@ * Linux. **/ -#elif defined(__linux) || defined(__FreeBSD_kernel__) +#elif defined(__linux__) || defined(__FreeBSD_kernel__) #if !defined(__BYTE_ORDER) # error Support your platform here