sst1, xdraw.asm: don't add _ prefix to exported symbol name with mingw.
Otherwise GNU toolchain fails with the error message: "Cannot export _grDrawTriangle@12: symbol not found" Learning something everyday.
This commit is contained in:
@@ -248,8 +248,13 @@ segment TEXT
|
||||
proc grDrawTriangle, 12
|
||||
endp
|
||||
%if XOS == XOS_WIN32
|
||||
%ifdef __MINGW32__
|
||||
; GNU LD fails with '_' prefix
|
||||
export grDrawTriangle@12
|
||||
%else
|
||||
export _grDrawTriangle@12
|
||||
%endif
|
||||
%endif
|
||||
|
||||
; FALL THRU to _trisetup
|
||||
|
||||
|
||||
@@ -213,8 +213,13 @@ segment TEXT
|
||||
proc grDrawTriangle, 12
|
||||
endp
|
||||
%if XOS == XOS_WIN32
|
||||
%ifdef __MINGW32__
|
||||
; GNU LD fails with '_' prefix
|
||||
export grDrawTriangle@12
|
||||
%else
|
||||
export _grDrawTriangle@12
|
||||
%endif
|
||||
%endif
|
||||
|
||||
; FALL THRU to _trisetup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user