Skip to content

Commit ba8fe48

Browse files
committed
Avoid some warnings in MSVC build.
1 parent 7a3418b commit ba8fe48

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2018-09-22 Bruno Haible <bruno@clisp.org>
2+
3+
Avoid some warnings in MSVC build.
4+
* include/export.h: Handle MSVC compiler as well.
5+
16
2018-09-22 Bruno Haible <bruno@clisp.org>
27

38
Update from gnulib. Move mapping tables into the code.

include/export.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
#if @HAVE_VISIBILITY@ && BUILDING_LIBICONV
33
#define LIBICONV_DLL_EXPORTED __attribute__((__visibility__("default")))
4+
#elif defined _MSC_VER && BUILDING_LIBICONV
5+
#define LIBICONV_DLL_EXPORTED __declspec(dllexport)
46
#else
57
#define LIBICONV_DLL_EXPORTED
68
#endif

libcharset/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2018-09-22 Bruno Haible <bruno@clisp.org>
2+
3+
Avoid some warnings in MSVC build.
4+
* include/export.h: Handle MSVC compiler as well.
5+
16
2018-09-22 Bruno Haible <bruno@clisp.org>
27

38
Update from gnulib. Move mapping tables into the code.

libcharset/include/export.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
#if @HAVE_VISIBILITY@ && BUILDING_LIBCHARSET
33
#define LIBCHARSET_DLL_EXPORTED __attribute__((__visibility__("default")))
4+
#elif defined _MSC_VER && BUILDING_LIBCHARSET
5+
#define LIBCHARSET_DLL_EXPORTED __declspec(dllexport)
46
#else
57
#define LIBCHARSET_DLL_EXPORTED
68
#endif

0 commit comments

Comments
 (0)