summaryrefslogtreecommitdiff
path: root/pkg/libffi/patch/0003-Don-t-use-complex-types-if-they-are-not-supported.patch
blob: 59cf019988484ab50514a03a08fb225bdcfed8f1 (plain)
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
From 160695fc15e589d08843b07b9f9950be574f3aee Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Tue, 13 Aug 2019 22:28:49 +0000
Subject: [PATCH] Don't use complex types if they are not supported

---
 src/x86/ffitarget.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/x86/ffitarget.h b/src/x86/ffitarget.h
index 85ccedf..d4f384c 100644
--- a/src/x86/ffitarget.h
+++ b/src/x86/ffitarget.h
@@ -50,7 +50,7 @@
 #endif
 
 #define FFI_TARGET_SPECIFIC_STACK_SPACE_ALLOCATION
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(__STDC_NO_COMPLEX__)
 #define FFI_TARGET_HAS_COMPLEX_TYPE
 #endif
 
-- 
2.24.0