summary refs log tree commit diff
path: root/pkgs/development/compilers/swift/patches/remove_xlocale.patch
blob: 8ef7e391696238eaf8af87bfc886aee09b0caf09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- a/swift/stdlib/public/SDK/os/os_trace_blob.c
+++ b/swift/stdlib/public/SDK/os/os_trace_blob.c
@@ -14,7 +14,6 @@
 #include <dispatch/dispatch.h>
 #include <os/base.h>
 #include <os/log.h>
-#include <xlocale.h>
 #include "os_trace_blob.h"
 
 OS_NOINLINE

--- a/swift/stdlib/public/stubs/Stubs.cpp
+++ b/swift/stdlib/public/stubs/Stubs.cpp
@@ -61,7 +61,6 @@
 #define strtof_l swift_strtof_l
 #define strtold_l swift_strtold_l
 #else
-#include <xlocale.h>
 #endif
 #include <limits>
 #include "llvm/ADT/StringExtras.h"

--- a/swift-corelibs-foundation/CoreFoundation/String.subproj/CFStringDefaultEncoding.h
+++ b/swift-corelibs-foundation/CoreFoundation/String.subproj/CFStringDefaultEncoding.h
@@ -20,7 +20,6 @@
 #include <unistd.h>
 #include <string.h>
 #include <stdio.h>
-#include <xlocale.h>
 
 CF_EXTERN_C_BEGIN
 

--- a/swift-corelibs-foundation/CoreFoundation/String.subproj/CFStringEncodings.c
+++ b/swift-corelibs-foundation/CoreFoundation/String.subproj/CFStringEncodings.c
@@ -24,7 +24,6 @@
 #include <unistd.h>
 #include <string.h>
 #include <stdio.h>
-#include <xlocale.h>
 #include <CoreFoundation/CFStringDefaultEncoding.h>
 #endif
 

--- a/swift-corelibs-foundation/CoreFoundation/Base.subproj/CFInternal.h
+++ b/swift-corelibs-foundation/CoreFoundation/Base.subproj/CFInternal.h
@@ -95,7 +95,6 @@
 #if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_EMBEDDED_MINI || DEPLOYMENT_TARGET_LINUX || DEPLOYMENT_TARGET_FREEBSD
 #if TARGET_OS_CYGWIN
 #else
-#include <xlocale.h>
 #endif
 #include <unistd.h>
 #include <sys/time.h>