File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
include/swift/Threading/Impl/Win32 Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,7 @@ typedef struct _RTL_CONDITION_VARIABLE *PRTL_CONDITION_VARIABLE;
47
47
typedef PRTL_CONDITION_VARIABLE PCONDITION_VARIABLE;
48
48
49
49
// These have to be #defines, to avoid problems with <windows.h>
50
- #define RTL_SRWLOCK_INIT \
51
- { 0 }
50
+ #define RTL_SRWLOCK_INIT {0 }
52
51
#define SRWLOCK_INIT RTL_SRWLOCK_INIT
53
52
#define FLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF )
54
53
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ swift::_swift_wideFromUTF8(const char *str) {
68
68
}
69
69
70
70
result = reinterpret_cast <wchar_t *>(std::malloc (len * sizeof (wchar_t )));
71
- if (!reuslt ) {
71
+ if (!result ) {
72
72
swift::fatalError (0 , " unable to allocate space to convert '%s': %d\n " ,
73
73
str, errno);
74
74
}
@@ -85,6 +85,4 @@ swift::_swift_wideFromUTF8(const char *str) {
85
85
return result;
86
86
}
87
87
88
- } // namespace swift
89
-
90
88
#endif // defined(_WIN32)
Original file line number Diff line number Diff line change 20
20
#include < string.h>
21
21
22
22
#if defined(_WIN32) && !defined(__CYGWIN)
23
- #define stat (x ) _stat(x )
23
+ #define stat (p,s ) _stat(p,s )
24
24
#define S_IFDIR _S_IFDIR
25
25
#endif
26
26
You can’t perform that action at this time.
0 commit comments