configure -static -release -platform win32-g++ -prefix D:\qt\static\5.11.1 -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -no-openssl -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests

I tried this command to set configuration for static build of Qt, and the error below occurs.

D:/qt/static/Src/qtbase/src/corelib/global/qglobal.cpp: In function 'QString qEnvironmentVariable(const char*, const QString&)':
D:/qt/static/Src/qtbase/src/corelib/global/qglobal.cpp:3333:5: error: '_wgetenv_s' was not declared in this scope
_wgetenv_s(&requiredSize, 0, 0, wname.data());
^~~~~~~~~~
D:/qt/static/Src/qtbase/src/corelib/global/qglobal.cpp:3333:5: note: suggested alternative: '_wgetenv'
_wgetenv_s(&requiredSize, 0, 0, wname.data());
^~~~~~~~~~
_wgetenv
mingw32-make: *** [Makefile:360: qglobal.o] Error 1

Even though I don't know much about what's going on inside, It seems that somehow _wgetenv_s function is not declared in stdlib.h header file. (I tested it by making a test cpp file)

Is it Ok for me to modify _wgetenv_s function to _wgetenv manually? Can it make any unexpected malfunction?