comparison Resources/Orthanc/Core/SystemToolbox.cpp @ 23:a4a1e4033403

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Nov 2016 15:27:57 +0100
parents b01d46e5a2b3
children 9ee7e2f5f1a3
comparison
equal deleted inserted replaced
22:b01d46e5a2b3 23:a4a1e4033403
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