Skip to content

Commit 20ea487

Browse files
authored
Merge pull request #1019 from zaoqi-clone/zaoqi-patch-1
fix build issue on Alpinelinux
2 parents c7289b6 + bf377fc commit 20ea487

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/light_elf.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626

2727
#include <inttypes.h>
2828

29-
__BEGIN_DECLS
29+
#ifdef __cplusplus
30+
extern "C" {
31+
#endif
3032

3133
typedef uint16_t Elf32_Half;
3234
typedef uint16_t Elf64_Half;
@@ -114,6 +116,8 @@ typedef struct elf32_note {
114116
#define EI_CLASS 4
115117
#define EI_DATA 5
116118

117-
__END_DECLS
119+
#ifdef __cplusplus
120+
}
121+
#endif
118122

119123
#endif /* elf.h */

0 commit comments

Comments
 (0)