Mercurial > hg > orthanc
diff Core/SystemToolbox.cpp @ 2173:1c42860097fc
fix windows build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Nov 2016 15:27:12 +0100 |
parents | 84d1d392a9ab |
children | 4e8e0ad2001c |
line wrap: on
line diff
--- a/Core/SystemToolbox.cpp Wed Nov 23 12:06:00 2016 +0100 +++ b/Core/SystemToolbox.cpp Wed Nov 23 15:27:12 2016 +0100 @@ -35,27 +35,29 @@ #if BOOST_HAS_DATE_TIME == 1 -#include <boost/date_time/posix_time/posix_time.hpp> +# include <boost/date_time/posix_time/posix_time.hpp> #endif #if defined(_WIN32) -#include <windows.h> -#include <process.h> // For "_spawnvp()" and "_getpid()" +# include <windows.h> +# include <process.h> // For "_spawnvp()" and "_getpid()" #else -#include <unistd.h> // For "execvp()" -#include <sys/wait.h> // For "waitpid()" +# include <unistd.h> // For "execvp()" +# include <sys/wait.h> // For "waitpid()" #endif + #if defined(__APPLE__) && defined(__MACH__) -#include <mach-o/dyld.h> /* _NSGetExecutablePath */ -#include <limits.h> /* PATH_MAX */ +# include <mach-o/dyld.h> /* _NSGetExecutablePath */ +# include <limits.h> /* PATH_MAX */ #endif + #if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__FreeBSD__) -#include <limits.h> /* PATH_MAX */ -#include <signal.h> -#include <unistd.h> +# include <limits.h> /* PATH_MAX */ +# include <signal.h> +# include <unistd.h> #endif