File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ 2023-05-21 Bruno Haible <bruno@clisp.org>
2+
3+ Fix link error regarding _libiconv_version on MSVC in C++ mode.
4+ Reported at <https://savannah.gnu.org/bugs/?64227>.
5+ * include/iconv.h.in (_libiconv_version): Enclose in an extern "C"
6+ block.
7+
182023-05-20 Bruno Haible <bruno@clisp.org>
29
310 Implement GB18030 version 2022.
Original file line number Diff line number Diff line change 2020#ifndef _LIBICONV_H
2121#define _LIBICONV_H
2222
23+ #ifdef __cplusplus
24+ extern "C" {
25+ #endif
26+
2327#define _LIBICONV_VERSION 0x0111 /* version number: (major<<8) + minor */
2428extern @DLL_VARIABLE @ int _libiconv_version ; /* Likewise */
2529
30+ #ifdef __cplusplus
31+ }
32+ #endif
33+
2634/* We would like to #include any system header file which could define
2735 iconv_t, 1. in order to eliminate the risk that the user gets compilation
2836 errors because some other system header file includes /usr/include/iconv.h
You can’t perform that action at this time.
0 commit comments