File tree Expand file tree Collapse file tree 4 files changed +32
-0
lines changed
Sources/_SwiftSyntaxCShims/include Expand file tree Collapse file tree 4 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1616#include <stdbool.h>
1717#include <stdlib.h>
1818
19+ #ifdef __cplusplus
20+ extern "C" {
21+ #endif
22+
1923typedef struct {
2024 _Atomic (bool ) value ;
2125} AtomicBool ;
@@ -50,4 +54,8 @@ static inline void swiftsyntax_atomic_pointer_set(AtomicPointer *_Nonnull atomic
5054 atomic -> value = newValue ;
5155}
5256
57+ #ifdef __cplusplus
58+ }
59+ #endif
60+
5361#endif // SWIFTSYNTAX_ATOMICBOOL_H
Original file line number Diff line number Diff line change 1515
1616#include "_bridging.h"
1717
18+ #ifdef __cplusplus
19+ extern "C" {
20+ #endif
21+
1822typedef struct PlatformMutex {
1923 void * opaque ;
2024} PlatformMutex ;
@@ -31,4 +35,8 @@ void swiftsyntax_platform_mutex_unlock(PlatformMutex m);
3135SWIFT_NAME_S ("PlatformMutex.destroy(self:)" )
3236void swiftsyntax_platform_mutex_destroy (PlatformMutex m );
3337
38+ #ifdef __cplusplus
39+ }
40+ #endif
41+
3442#endif // SWIFTSYNTAX_PLATFORMMUTEX_H
Original file line number Diff line number Diff line change 1717
1818#include <errno.h>
1919
20+ #ifdef __cplusplus
21+ extern "C" {
22+ #endif
23+
2024SWIFT_NAME_S ("getter:swift_syntax_errno()" )
2125static inline int swiftsyntax_errno (void ) {
2226 return errno ;
2327}
2428
29+ #ifdef __cplusplus
30+ }
31+ #endif
32+
2533#endif // SWIFTSYNTAX_ERRNO_H
Original file line number Diff line number Diff line change 1717
1818#include <stdio.h>
1919
20+ #ifdef __cplusplus
21+ extern "C" {
22+ #endif
23+
2024SWIFT_NAME_S ("getter:swift_syntax_stdout()" )
2125static inline FILE * swiftsyntax_stdout (void ) {
2226 return stdout ;
@@ -32,4 +36,8 @@ static inline FILE *swiftsyntax_stderr(void) {
3236 return stderr ;
3337}
3438
39+ #ifdef __cplusplus
40+ }
41+ #endif
42+
3543#endif // SWIFTSYNTAX_STDIO_H
You can’t perform that action at this time.
0 commit comments