Skip to content

Commit 8f1f5df

Browse files
pgundlachkhaledhosny
authored andcommitted
harfbuzz: fix duplicate symbols in static builds
1 parent 3d64a18 commit 8f1f5df

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/luaharfbuzz/luaharfbuzz.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "luaharfbuzz.h"
22

3-
int shape_full (lua_State *L) {
3+
static int shape_full (lua_State *L) {
44
Font *font = (Font *)luaL_checkudata(L, 1, "harfbuzz.Font");
55
Buffer *buf = (Buffer *)luaL_checkudata(L, 2, "harfbuzz.Buffer");
66
luaL_checktype(L, 3, LUA_TTABLE);
@@ -36,12 +36,12 @@ int shape_full (lua_State *L) {
3636
return 1;
3737
}
3838

39-
int version (lua_State *L) {
39+
static int version (lua_State *L) {
4040
lua_pushstring(L, hb_version_string());
4141
return 1;
4242
}
4343

44-
int list_shapers (lua_State *L) {
44+
static int list_shapers (lua_State *L) {
4545
const char **shaper_list = hb_shape_list_shapers ();
4646
int i = 0;
4747

src/luaharfbuzzsubset/luaharfbuzzsubset.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "luaharfbuzzsubset.h"
22

3-
int subset(lua_State *L) {
3+
static int subset(lua_State *L) {
44
// arguments: face and input
55
Face *face = (Face *)luaL_checkudata(L, 1, "harfbuzz.Face");
66
SubsetInput *input = (SubsetInput*)luaL_checkudata(L, 2, "harfbuzz.SubsetInput");
@@ -19,7 +19,7 @@ int subset(lua_State *L) {
1919
return 1;
2020
}
2121

22-
int version (lua_State *L) {
22+
static int version (lua_State *L) {
2323
lua_pushstring(L, hb_version_string());
2424
return 1;
2525
}

0 commit comments

Comments
 (0)