diff options
author | Bruno Haible <bruno@clisp.org> | 2020-11-21 22:40:27 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-11-21 22:41:29 +0100 |
commit | 31600a8bd3ad1e27715e214227b6b64196aff631 (patch) | |
tree | 117194c521f400dbaf05ff36fe2451a4ba5fba81 /woe32dll/export.h | |
parent | fc6f96660801e1da624753bd17379a68f82aa409 (diff) | |
download | libunistring-31600a8bd3ad1e27715e214227b6b64196aff631.tar.gz |
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.
Diffstat (limited to 'woe32dll/export.h')
-rw-r--r-- | woe32dll/export.h | 8 |
1 files changed, 6 insertions, 2 deletions
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. */ |