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 16
16
#include <stdbool.h>
17
17
#include <stdlib.h>
18
18
19
+ #ifdef __cplusplus
20
+ extern "C" {
21
+ #endif
22
+
19
23
typedef struct {
20
24
_Atomic (bool ) value ;
21
25
} AtomicBool ;
@@ -50,4 +54,8 @@ static inline void swiftsyntax_atomic_pointer_set(AtomicPointer *_Nonnull atomic
50
54
atomic -> value = newValue ;
51
55
}
52
56
57
+ #ifdef __cplusplus
58
+ }
59
+ #endif
60
+
53
61
#endif // SWIFTSYNTAX_ATOMICBOOL_H
Original file line number Diff line number Diff line change 15
15
16
16
#include "_bridging.h"
17
17
18
+ #ifdef __cplusplus
19
+ extern "C" {
20
+ #endif
21
+
18
22
typedef struct PlatformMutex {
19
23
void * opaque ;
20
24
} PlatformMutex ;
@@ -31,4 +35,8 @@ void swiftsyntax_platform_mutex_unlock(PlatformMutex m);
31
35
SWIFT_NAME_S ("PlatformMutex.destroy(self:)" )
32
36
void swiftsyntax_platform_mutex_destroy (PlatformMutex m );
33
37
38
+ #ifdef __cplusplus
39
+ }
40
+ #endif
41
+
34
42
#endif // SWIFTSYNTAX_PLATFORMMUTEX_H
Original file line number Diff line number Diff line change 17
17
18
18
#include <errno.h>
19
19
20
+ #ifdef __cplusplus
21
+ extern "C" {
22
+ #endif
23
+
20
24
SWIFT_NAME_S ("getter:swift_syntax_errno()" )
21
25
static inline int swiftsyntax_errno (void ) {
22
26
return errno ;
23
27
}
24
28
29
+ #ifdef __cplusplus
30
+ }
31
+ #endif
32
+
25
33
#endif // SWIFTSYNTAX_ERRNO_H
Original file line number Diff line number Diff line change 17
17
18
18
#include <stdio.h>
19
19
20
+ #ifdef __cplusplus
21
+ extern "C" {
22
+ #endif
23
+
20
24
SWIFT_NAME_S ("getter:swift_syntax_stdout()" )
21
25
static inline FILE * swiftsyntax_stdout (void ) {
22
26
return stdout ;
@@ -32,4 +36,8 @@ static inline FILE *swiftsyntax_stderr(void) {
32
36
return stderr ;
33
37
}
34
38
39
+ #ifdef __cplusplus
40
+ }
41
+ #endif
42
+
35
43
#endif // SWIFTSYNTAX_STDIO_H
You can’t perform that action at this time.
0 commit comments