void-packages/srcpkgs/LuaJIT/patches/unpollute-global-namespace....

22 lines
743 B
Diff

From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= <ondrej@sury.org>
Date: Wed, 11 Oct 2017 08:42:41 +0000
Subject: Make ccall_copy_struct static to unpollute global library namespace
---
src/lj_ccall.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git src/lj_ccall.c src/lj_ccall.c
index b891591..a7dcc1b 100644
--- a/src/lj_ccall.c
+++ b/src/lj_ccall.c
@@ -960,7 +960,7 @@ noth: /* Not a homogeneous float/double aggregate. */
return 0; /* Struct is in GPRs. */
}
-void ccall_copy_struct(CCallState *cc, CType *ctr, void *dp, void *sp, int ft)
+static void ccall_copy_struct(CCallState *cc, CType *ctr, void *dp, void *sp, int ft)
{
if (LJ_ABI_SOFTFP ? ft :
((ft & 3) == FTYPE_FLOAT || (ft >> 2) == FTYPE_FLOAT)) {