Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
2172:84d1d392a9ab | 2173:1c42860097fc |
---|---|
33 #include "PrecompiledHeaders.h" | 33 #include "PrecompiledHeaders.h" |
34 #include "SystemToolbox.h" | 34 #include "SystemToolbox.h" |
35 | 35 |
36 | 36 |
37 #if BOOST_HAS_DATE_TIME == 1 | 37 #if BOOST_HAS_DATE_TIME == 1 |
38 #include <boost/date_time/posix_time/posix_time.hpp> | 38 # include <boost/date_time/posix_time/posix_time.hpp> |
39 #endif | 39 #endif |
40 | 40 |
41 | 41 |
42 #if defined(_WIN32) | 42 #if defined(_WIN32) |
43 #include <windows.h> | 43 # include <windows.h> |
44 #include <process.h> // For "_spawnvp()" and "_getpid()" | 44 # include <process.h> // For "_spawnvp()" and "_getpid()" |
45 #else | 45 #else |
46 #include <unistd.h> // For "execvp()" | 46 # include <unistd.h> // For "execvp()" |
47 #include <sys/wait.h> // For "waitpid()" | 47 # include <sys/wait.h> // For "waitpid()" |
48 #endif | 48 #endif |
49 | |
49 | 50 |
50 #if defined(__APPLE__) && defined(__MACH__) | 51 #if defined(__APPLE__) && defined(__MACH__) |
51 #include <mach-o/dyld.h> /* _NSGetExecutablePath */ | 52 # include <mach-o/dyld.h> /* _NSGetExecutablePath */ |
52 #include <limits.h> /* PATH_MAX */ | 53 # include <limits.h> /* PATH_MAX */ |
53 #endif | 54 #endif |
55 | |
54 | 56 |
55 #if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__FreeBSD__) | 57 #if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__FreeBSD__) |
56 #include <limits.h> /* PATH_MAX */ | 58 # include <limits.h> /* PATH_MAX */ |
57 #include <signal.h> | 59 # include <signal.h> |
58 #include <unistd.h> | 60 # include <unistd.h> |
59 #endif | 61 #endif |
60 | 62 |
61 | 63 |
62 // Inclusions for UUID | 64 // Inclusions for UUID |
63 // http://stackoverflow.com/a/1626302 | 65 // http://stackoverflow.com/a/1626302 |