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:
parent
a1f157c317
commit
504f49ee26
17
c_windows_static_workaround.go
Normal file
17
c_windows_static_workaround.go
Normal 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"
|
Loading…
Reference in New Issue
Block a user