28
28
29
29
#if !defined(_WIN32 ) || defined(__CYGWIN__ )
30
30
SWIFT_CC (swift )
31
- extern int _swift_Platform_open (const char * path , int oflag , mode_t mode ) {
31
+ int _swift_Platform_open (const char * path , int oflag , mode_t mode ) {
32
32
return open (path , oflag , mode );
33
33
}
34
34
#else
35
35
SWIFT_CC (swift )
36
- extern int _swift_Platform_open (const char * path , int oflag , int mode ) {
36
+ int _swift_Platform_open (const char * path , int oflag , int mode ) {
37
37
return _open (path , oflag , mode );
38
38
}
39
39
#endif
40
40
41
41
#if !defined(_WIN32 ) || defined(__CYGWIN__ )
42
42
SWIFT_CC (swift )
43
- extern int _swift_Platform_openat (int fd , const char * path , int oflag ,
43
+ int _swift_Platform_openat (int fd , const char * path , int oflag ,
44
44
mode_t mode ) {
45
45
return openat (fd , path , oflag , mode );
46
46
}
47
47
48
48
SWIFT_CC (swift )
49
- extern sem_t * _swift_Platform_sem_open2 (const char * name , int oflag ) {
49
+ sem_t * _swift_Platform_sem_open2 (const char * name , int oflag ) {
50
50
return sem_open (name , oflag );
51
51
}
52
52
53
53
SWIFT_CC (swift )
54
- extern sem_t * _swift_Platform_sem_open4 (const char * name , int oflag ,
54
+ sem_t * _swift_Platform_sem_open4 (const char * name , int oflag ,
55
55
mode_t mode , unsigned int value ) {
56
56
return sem_open (name , oflag , mode , value );
57
57
}
58
58
59
59
SWIFT_CC (swift )
60
- extern int _swift_Platform_fcntl (int fd , int cmd , int value ) {
60
+ int _swift_Platform_fcntl (int fd , int cmd , int value ) {
61
61
return fcntl (fd , cmd , value );
62
62
}
63
63
64
64
SWIFT_CC (swift )
65
- extern int _swift_Platform_fcntlPtr (int fd , int cmd , void * ptr ) {
65
+ int _swift_Platform_fcntlPtr (int fd , int cmd , void * ptr ) {
66
66
return fcntl (fd , cmd , ptr );
67
67
}
68
68
69
69
SWIFT_CC (swift )
70
- extern int
70
+ int
71
71
_swift_Platform_ioctl (int fd , unsigned long int request , int value ) {
72
72
return ioctl (fd , request , value );
73
73
}
74
74
75
75
SWIFT_CC (swift )
76
- extern int
76
+ int
77
77
_swift_Platform_ioctlPtr (int fd , unsigned long int request , void * ptr ) {
78
78
return ioctl (fd , request , ptr );
79
79
}
@@ -84,35 +84,36 @@ _swift_Platform_ioctlPtr(int fd, unsigned long int request, void* ptr) {
84
84
#include <math.h>
85
85
86
86
SWIFT_CC (swift )
87
- extern float _swift_Darwin_lgammaf_r (float x , int * psigngam ) {
87
+ float _swift_Darwin_lgammaf_r (float x , int * psigngam ) {
88
88
return lgammaf_r (x , psigngam );
89
89
}
90
90
91
91
SWIFT_CC (swift )
92
- extern double _swift_Darwin_lgamma_r (double x , int * psigngam ) {
92
+ double _swift_Darwin_lgamma_r (double x , int * psigngam ) {
93
93
return lgamma_r (x , psigngam );
94
94
}
95
95
96
96
SWIFT_CC (swift )
97
- extern long double _swift_Darwin_lgammal_r (long double x , int * psigngam ) {
97
+ long double _swift_Darwin_lgammal_r (long double x , int * psigngam ) {
98
98
return lgammal_r (x , psigngam );
99
99
}
100
100
#endif // defined(__APPLE__)
101
101
102
102
#if defined(__FreeBSD__ )
103
- SWIFT_CC (swift ) extern char * * _swift_FreeBSD_getEnv () {
103
+ SWIFT_CC (swift )
104
+ char * * _swift_FreeBSD_getEnv () {
104
105
extern char * * environ ;
105
106
return environ ;
106
107
}
107
108
#endif // defined(__FreeBSD__)
108
109
109
110
SWIFT_CC (swift )
110
- extern int _swift_Platform_getErrno () {
111
+ int _swift_Platform_getErrno () {
111
112
return errno ;
112
113
}
113
114
114
115
SWIFT_CC (swift )
115
- extern void _swift_Platform_setErrno (int value ) {
116
+ void _swift_Platform_setErrno (int value ) {
116
117
errno = value ;
117
118
}
118
119
0 commit comments