← Back to team overview

kicad-developers team mailing list archive

Various HAVE_ISO_* in CMakeModules/config.h.cmake

 

Hi Guys,

This plays breaks compilation with mingw-w64, can I remove them? I don't
think they should affect anyone anymore because they are a MicroSoft Visual
C cludge as far as I can tell. Mingw-w64's problem is that is defines both
snprintf and _snprintf symbols.

    #cmakedefine HAVE_ISO_SNPRINTF

    #if defined( HAVE_ISO_SNPRINTF )
    #define snprintf _snprintf
    #endif

I guess MSVC only defined _snprintf and not snprintf?

Anyhoo, if we don't want to get rid of them, I'll need to add a check so
that the define is not used on mingw-w64

Best Regards,

Brian.