diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 63786c60b0..5a865fd8ad 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -18,6 +18,10 @@ // for compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +// Define this as soon as possible and before string.h is included to get +// memset_s() declaration from it if available. +#define __STDC_WANT_LIB_EXT1__ 1 + #include "wx/utils.h" #if !defined(HAVE_SETENV) && defined(HAVE_PUTENV) @@ -113,8 +117,6 @@ #define _LANGUAGE_C_PLUS_PLUS 1 #endif // SGI hack -#define __STDC_WANT_LIB_EXT1__ 1 // for memset_s() in - #include #include #include