Skip to content

Commit 4aefc6e

Browse files
authored
Remove C++ guards from internal musl syscall.h. NFC (#26871)
These were added back when we included this file from wasmfs (written in C++), but since I created the separate syscalls.h in #26658 this is no longer needed.
1 parent 80e6662 commit 4aefc6e

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

system/lib/libc/musl/src/internal/syscall.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,9 @@
3030
typedef long syscall_arg_t;
3131
#endif
3232

33-
#ifdef __cplusplus
34-
extern "C" {
35-
#endif
3633
hidden long __syscall_ret(unsigned long),
3734
__syscall_cp(syscall_arg_t, syscall_arg_t, syscall_arg_t, syscall_arg_t,
3835
syscall_arg_t, syscall_arg_t, syscall_arg_t);
39-
#ifdef __cplusplus
40-
}
41-
#endif
4236

4337
#ifndef __EMSCRIPTEN__
4438
#define __syscall1(n,a) __syscall1(n,__scc(a))
@@ -445,11 +439,7 @@ hidden long __emulate_wait4(int, int *, int, void *, int);
445439
#define sys_wait4(a,b,c,d) __syscall_ret(__sys_wait4(a,b,c,d))
446440
#define sys_wait4_cp(a,b,c,d) __syscall_ret(__sys_wait4_cp(a,b,c,d))
447441

448-
#ifdef __cplusplus
449-
hidden void __procfdname(char __buf[], unsigned);
450-
#else
451442
hidden void __procfdname(char __buf[static 15+3*sizeof(int)], unsigned);
452-
#endif
453443

454444
hidden void *__vdsosym(const char *, const char *);
455445

0 commit comments

Comments
 (0)