# HG changeset patch # User Sebastien Jodogne # Date 1438444416 -7200 # Node ID 159f67b5f8561892ef32dbf462fb76d2aab9046b # Parent a4f9432d91736170fda3119040321dded41d2776 Support of OS X compilation diff -r a4f9432d9173 -r 159f67b5f856 Core/PostgreSQLResult.cpp --- a/Core/PostgreSQLResult.cpp Fri Jul 31 11:19:06 2015 +0200 +++ b/Core/PostgreSQLResult.cpp Sat Aug 01 17:53:36 2015 +0200 @@ -30,8 +30,12 @@ #include #include -#ifdef __FreeBSD__ -#include // ntohl() +#if defined(__FreeBSD__) +# include // ntohl() +#elif defined(__APPLE__) +# include +# define htobe32(x) OSSwapHostToBigInt32(x) +# define htobe64(x) OSSwapHostToBigInt64(x) #endif diff -r a4f9432d9173 -r 159f67b5f856 Core/PostgreSQLStatement.cpp --- a/Core/PostgreSQLStatement.cpp Fri Jul 31 11:19:06 2015 +0200 +++ b/Core/PostgreSQLStatement.cpp Sat Aug 01 17:53:36 2015 +0200 @@ -30,6 +30,12 @@ #include #include +#if defined(__APPLE__) +# include +# define htobe32(x) OSSwapHostToBigInt32(x) +# define htobe64(x) OSSwapHostToBigInt64(x) +#endif + namespace OrthancPlugins { diff -r a4f9432d9173 -r 159f67b5f856 NEWS --- a/NEWS Fri Jul 31 11:19:06 2015 +0200 +++ b/NEWS Sat Aug 01 17:53:36 2015 +0200 @@ -4,6 +4,7 @@ * Inject version information into Windows binaries * Option to prevent compiling the unit tests (if no PostgreSQL test server is available) * Update to Boost 1.58.0 for static and Windows builds +* Support of OS X compilation Release 1.1 (2015/07/03)