Skip to content

Commit 0753707

Browse files
committed
config, os: add support for Musl libc
According to Musl's FAQ, `__BEGIN_DECLS` and `__END_DECLS` macros come from Glibc private headers. Because of that, we need to define them manually in case those aren't defined.
1 parent 469c8ec commit 0753707

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

os/generic_win_base.h

-8
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@
2525
typedef int mode_t;
2626
typedef void pthread_attr_t;
2727

28-
#if defined(__cplusplus)
29-
#define __BEGIN_DECLS extern "C" {
30-
#define __END_DECLS }
31-
#else
32-
#define __BEGIN_DECLS
33-
#define __END_DECLS
34-
#endif
35-
3628
#ifndef API_AVAILABLE
3729
#define API_AVAILABLE(...)
3830
#endif

0 commit comments

Comments
 (0)