1From 97914aeab52b4d0ea0ab9e5ff985a1c5cddb0fa1 Mon Sep 17 00:00:00 2001
2From: Vincent Prince <vincent.prince.fr@gmail.com>
3Date: Mon, 16 Sep 2019 13:41:39 +0200
4Subject: [PATCH 06/10] IntelRDFPMathLib20U1: Check for __DEFINED_wchar_t
5
6This is defined by musl if wchar_t is already defined
7
8avoids errors like
9
10src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h:46:15: error: typedef redefinition with different types
11      ('int' vs 'unsigned int')
12typedef int   wchar_t;
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15Signed-off-by: Vincent Prince <vincent.prince.fr@gmail.com>
16
17Upstream-Status: Pending
18---
19 src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h b/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h
23index 56775bc..be96a85 100755
24--- a/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h
25+++ b/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h
26@@ -43,7 +43,7 @@
27
28 #if 0 // MongoDB Modification -- just `#include <stddef.h>`
29 // Fix system header issue on Sun solaris and define required type by ourselves
30-#if !defined(_WCHAR_T) && !defined(_WCHAR_T_DEFINED) && !defined(__QNX__)
31+#if !defined(_WCHAR_T) && !defined(_WCHAR_T_DEFINED) && !defined(__QNX__) && !defined(__DEFINED_wchar_t)
32 typedef int   wchar_t;
33 #endif
34 #else
35--
362.7.4
37
38