Skip to content

Commit 7dfff8c

Browse files
committed
Fix gcc header-inline linker error
1 parent 54e596e commit 7dfff8c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/resources/languages.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ enum
2525

2626
// Gets an openomf localization string
2727
const char *lang_get(unsigned int id);
28-
inline const char *lang_get2(unsigned int id) {
29-
return lang_get(id);
30-
}
28+
// Gets an openomf localization string
29+
#define lang_get2(id) lang_get(id)
3130

3231
// Gets an openomf localization string (from one of the tables)
3332
#define lang_get_offset(LANG2_STR, offset) lang_get_offset_impl(LANG2_STR, LANG2_STR##_COUNT, (offset))

0 commit comments

Comments
 (0)