Skip to content

Commit

Permalink
alpine: musl-cdefs.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy J Fontaine committed Mar 12, 2019
1 parent 5e61082 commit 95ac7db
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libelf/elf.h
Expand Up @@ -21,6 +21,17 @@

#include <features.h>

#if !defined(__GLIBC__)
/* C++ needs to know that types and declarations are C, not C++. */
#ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
#else
# define __BEGIN_DECLS
# define __END_DECLS
#endif
#endif

__BEGIN_DECLS

/* Standard ELF types. */
Expand Down

0 comments on commit 95ac7db

Please sign in to comment.