diff --git a/c_windows_static_workaround.go b/c_windows_static_workaround.go new file mode 100644 index 0000000..8b8a5d7 --- /dev/null +++ b/c_windows_static_workaround.go @@ -0,0 +1,17 @@ +// +build windows,static,mingw64_7_3 + +package allg5 + +/* +#define _CRTBLD +#include + +FILE *__cdecl __acrt_iob_func(unsigned index) +{ + return &(__iob_func()[index]); +} + +typedef FILE *__cdecl (*_f__acrt_iob_func)(unsigned index); +_f__acrt_iob_func __MINGW_IMP_SYMBOL(__acrt_iob_func) = __acrt_iob_func; +*/ +import "C"