File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Sources/_SubprocessCShims/include Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 35
35
#include <sys/wait.h>
36
36
#endif // TARGET_OS_LINUX || TARGET_OS_FREEBSD
37
37
38
+ #ifdef __cplusplus
39
+ extern "C" {
40
+ #endif
41
+
38
42
#if __has_include (< mach /vm_page_size .h > )
39
43
vm_size_t _subprocess_vm_size (void );
40
44
#endif
@@ -102,12 +106,20 @@ int _pidfd_open(pid_t pid);
102
106
103
107
#endif
104
108
109
+ #ifdef __cplusplus
110
+ } // extern "C"
111
+ #endif
112
+
105
113
#endif // !TARGET_OS_WINDOWS
106
114
107
115
#if TARGET_OS_WINDOWS
108
116
109
117
#include <Windows.h>
110
118
119
+ #ifdef __cplusplus
120
+ extern "C" {
121
+ #endif
122
+
111
123
#ifndef _WINDEF_
112
124
typedef unsigned long DWORD ;
113
125
typedef int BOOL ;
@@ -122,6 +134,10 @@ unsigned int _subprocess_windows_get_errno(void);
122
134
/// complex macro and cannot be imported directly into Swift.
123
135
DWORD_PTR _subprocess_PROC_THREAD_ATTRIBUTE_HANDLE_LIST (void );
124
136
137
+ #ifdef __cplusplus
138
+ } // extern "C"
139
+ #endif
140
+
125
141
#endif
126
142
127
143
#endif /* process_shims_h */
You can’t perform that action at this time.
0 commit comments