Git Product home page Git Product logo

libiconv's Introduction

Hello ~

Libra11 github stats Top Langs

Libra11 github stats Top Langs



libiconv's People

Contributors

bhaible avatar bnoordhuis avatar komh avatar sam-s avatar ueno avatar

Watchers

 avatar

libiconv's Issues

Compile error with MSVC

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.