YARP
Yet Another Robot Platform
PlatformSysWait.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef YARP_OS_IMPL_PLATFORMSYSWAIT_H
7 #define YARP_OS_IMPL_PLATFORMSYSWAIT_H
8 
9 #include <yarp/conf/system.h>
10 #if defined(YARP_HAS_ACE)
11 # include <ace/OS_NS_sys_wait.h>
12 // In one the ACE headers there is a definition of "main" for WIN32
13 # ifdef main
14 # undef main
15 # endif
16 #elif defined(YARP_HAS_SYS_WAIT_H)
17 # include <sys/wait.h>
18 #endif
19 
20 namespace yarp {
21 namespace os {
22 namespace impl {
23 
24 #if defined(YARP_HAS_ACE)
25 using ACE_OS::wait;
26 using ACE_OS::waitpid;
27 #else
28 using ::wait;
29 using ::waitpid;
30 #endif
31 
32 } // namespace impl
33 } // namespace os
34 } // namespace yarp
35 
36 #endif // YARP_OS_IMPL_PLATFORMSYSWAIT_H
The main, catch-all namespace for YARP.
Definition: dirs.h:16