• Ali Rizvi-Santiago's avatar
    runtime/cgo: added missing includes for errno.h to the windows gcc stubs. · 595bc63e
    Ali Rizvi-Santiago authored
    This adds the includes for errno.h to the windows stubs
    for runtime/cgo so that "errno" is properly declared.
    
    Due to "errno" not being properly declared, the compiler is
    forced to assume it's an external which leaves it up to the
    linker. This is an issue in some implementations as errno
    might be a macro which results in an unresolved symbol error
    during linking.
    
    runtime/cgo/gcc_libinit_windows.c: added include
    runtime/cgo/gcc_windows_386.c: added include
    runtime/cgo/gcc_windows_amd64.c: added include
    
    Change-Id: I77167d02f7409462979135efc55cf50bbc6bd363
    GitHub-Last-Rev: 90da06ee3cbec3f51c6d31185868bb70341ce9d3
    GitHub-Pull-Request: golang/go#28747
    Reviewed-on: https://go-review.googlesource.com/c/149118
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    595bc63e
gcc_windows_386.c 1008 Bytes