From 4f99b79617d80ea7ce78d808306464fa44488caf Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 7 Sep 2023 13:46:06 +0200 Subject: [PATCH] Sync woe32dll/export.h with GNU libiconv and GNU libunistring. * gettext-tools/woe32dll/export.h: Update comments. Correct indentation. --- gettext-tools/woe32dll/export.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/gettext-tools/woe32dll/export.h b/gettext-tools/woe32dll/export.h index 1c4054d28..3705deef3 100644 --- a/gettext-tools/woe32dll/export.h +++ b/gettext-tools/woe32dll/export.h @@ -1,5 +1,5 @@ -/* Exporting symbols from Cygwin shared libraries. - Copyright (C) 2006, 2011-2020 Free Software Foundation, Inc. +/* Exporting symbols from Windows shared libraries. + Copyright (C) 2006, 2011-2023 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -/* There are four ways to build shared libraries on Cygwin: +/* There are four ways to build shared libraries on Windows: - Export only functions, no variables. This has the drawback of severely affecting the programming style in use. @@ -53,13 +53,13 @@ 2. the library sources are contained in one directory, making it easy to define a -DBUILDING_LIBXYZ flag for the library. Example: - #ifdef BUILDING_LIBASPRINTF - #define LIBASPRINTF_DLL_EXPORTED __declspec(dllexport) + #ifdef BUILDING_LIBICONV + #define LIBICONV_DLL_EXPORTED __declspec(dllexport) #else - #define LIBASPRINTF_DLL_EXPORTED __declspec(dllimport) + #define LIBICONV_DLL_EXPORTED __declspec(dllimport) #endif - We use this technique for the libintl and the libasprintf libraries. + We use this technique for the libintl and the libiconv libraries. - Define a macro that expands to __declspec(dllimport) always, and use it in all header files of the library. Use an explicit export list for @@ -94,11 +94,11 @@ #if defined __GNUC__ /* GCC compiler, GNU toolchain */ /* IMP(x) is a symbol that contains the address of x. */ -#if defined _WIN64 || defined _LP64 -# define IMP(x) __imp_##x -#else -# define IMP(x) _imp__##x -#endif +# 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. */ -- 2.47.3