Skip to content

Commit

Permalink
Fix for compilation on Windows
Browse files Browse the repository at this point in the history
This fix allows the library to build on Windows (at least with MinGW-w64).

`.symver` is only supported for ELF format but Windows uses COFF/PE.

Workaround dummy define of `symver_set()`
  • Loading branch information
brechtsanders authored and besser82 committed Jun 6, 2023
1 parent ce562f4 commit a507b62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/crypt-port.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ extern size_t strcpy_or_abort (void *dst, size_t d_size, const void *src);
__asm__(".globl _" extstr); \
__asm__(".set _" extstr ", _" #intname)

#elif defined _WIN32

/* .symver is only supported for ELF format, Windows uses COFF/PE */
# define symver_set(extstr, intname, version, mode)

#elif defined __GNUC__ && __GNUC__ >= 3

# define _strong_alias(name, aliasname) \
Expand Down

0 comments on commit a507b62

Please sign in to comment.