Added workaround for a missing symbol when using an old mingw64 (e.g. 7.3).

Specify the build tag mingw64_7_3 to enable the workaround.
This commit is contained in:
Sander Schobers 2020-05-23 11:58:48 +02:00
parent a1f157c317
commit 504f49ee26

View File

@ -0,0 +1,17 @@
// +build windows,static,mingw64_7_3
package allg5
/*
#define _CRTBLD
#include <stdio.h>
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"