diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | woe32dll/export.h | 8 |
2 files changed, 13 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2020-11-21 Bruno Haible <bruno@clisp.org> + + build: Fix export of symbols in 64-bit mode on Windows. + Reported by kenjiuno <h8mastre@gmail.com> in + <https://savannah.gnu.org/bugs/?59491>. + * woe32dll/export.h (IMP): Correct definition in 64-bit mode. + 2020-09-06 Bruno Haible <bruno@clisp.org> build: Add support for clang on Windows. diff --git a/woe32dll/export.h b/woe32dll/export.h index ef6a77c..b17d9d3 100644 --- a/woe32dll/export.h +++ b/woe32dll/export.h @@ -1,5 +1,5 @@ /* Exporting symbols from Cygwin shared libraries. - Copyright (C) 2006, 2011-2018 Free Software Foundation, Inc. + Copyright (C) 2006, 2011-2020 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2006. This program is free software: you can redistribute it and/or @@ -103,7 +103,11 @@ #if defined __GNUC__ /* GCC compiler, GNU toolchain */ /* IMP(x) is a symbol that contains the address of x. */ -# define IMP(x) _imp__##x +# if defined _WIN64 || defined _LP64 +# define IMP(x) __imp_##x +# else +# define IMP(x) _imp__##x +# endif /* Ensure that the variable x is exported from the library, and that a pseudo-variable IMP(x) is available. */ |