aimidi / libiconv Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Hi @AiMiDi
Just a quick patch to allow MSVC build and avoid error:
[19/70] Building C object CMakeFiles\genflags.dir\libiconv\lib\genflags.c.obj
FAILED: CMakeFiles/genflags.dir/libiconv/lib/genflags.c.obj
C:\sdk\softs\vs22\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe /nologo /std:clatest /DWIN32 /D_WINDOWS /w /MD /Zi /Gw /Gy /Zc:inline /O2 /Zf /Zi /FS /MP16 /arch:AVX2 /w /DNDEBUG /showIncludes /FoCMakeFiles\genflags.dir\libiconv\lib\genflags.c.obj /FdCMakeFiles\genflags.dir\ /FS -c C:\sdk\src\libiconv_cmake\libiconv\lib\genflags.c
C:\sdk\src\libiconv_cmake\libiconv\lib\genflags.c(37): error C2016: C requires that a struct or union have at least one member
C:\sdk\src\libiconv_cmake\libiconv\lib\genflags.c(38): error C2016: C requires that a struct or union have at least one member
C:\sdk\src\libiconv_cmake\libiconv\lib\genflags.c(39): error C2016: C requires that a struct or union have at least one member
lib/genflags.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/genflags.c b/lib/genflags.c
index 9f3d15d..3575aa6 100644
--- a/lib/genflags.c
+++ b/lib/genflags.c
@@ -34,9 +34,9 @@
#define USE_ZOS
#define USE_EXTRA
-struct loop_funcs {};
-struct iconv_hooks {};
-struct iconv_fallbacks {};
+struct loop_funcs {char unused;};
+struct iconv_fallbacks {char unused;};
+struct iconv_hooks {char unused;};
#define ICONV_SURFACE_EBCDIC_ZOS_UNIX 1
#include "converters.h"
actually dirty, maybe better to do but work fine for me with MSVC 14.40 x64 cmake build
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.