123456789101112131415161718192021222324252627282930313233 |
- From fbfceebce2121831904f2f7115252dd03b413a6d Mon Sep 17 00:00:00 2001
- From: Khem Raj <raj.khem@gmail.com>
- Date: Tue, 19 Sep 2017 18:52:53 -0700
- Subject: [PATCH] IntelRDFPMathLib20U1: Check for __DEFINED_wchar_t
- This is defined by musl if wchar_t is already defined
- avoids errors like
- src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h:46:15: error: typedef redefinition with different types
- ('int' vs 'unsigned int')
- typedef int wchar_t;
- Signed-off-by: Khem Raj <raj.khem@gmail.com>
- ---
- Upstream-Status: Pending
- src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- Index: git/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h
- ===================================================================
- --- git.orig/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h
- +++ git/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h
- @@ -43,7 +43,7 @@
-
- #if 0 // MongoDB Modification -- just `#include <stddef.h>`
- // Fix system header issue on Sun solaris and define required type by ourselves
- -#if !defined(_WCHAR_T) && !defined(_WCHAR_T_DEFINED) && !defined(__QNX__)
- +#if !defined(_WCHAR_T) && !defined(_WCHAR_T_DEFINED) && !defined(__QNX__) && !defined(__DEFINED_wchar_t)
- typedef int wchar_t;
- #endif
- #else
|