From: Vadim Zeitlin Date: Thu, 15 Apr 1999 14:16:14 +0000 (+0000) Subject: workaround for mingw32 div() bug X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/af3de916ef619d53805e185dd1a26b0f394f4f46 workaround for mingw32 div() bug git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/makeg95.env b/src/makeg95.env index 34d927865f..67df3d0a74 100644 --- a/src/makeg95.env +++ b/src/makeg95.env @@ -94,7 +94,12 @@ GUI = -D__WXMSW__ -D__WINDOWS__ # Optimization # OPT = -O -OPT = + +# according to Guillermo Rodriguez Garcia this flag is needed +# to make the standard div() functio work - otherwise it returns absolutely +# incorrect results and completely breaks the wxImage class (where it's used +# extensively) +OPT = -fno-pcc-struct-return # Options for ar archiver # AROPTIONS = crs # For IRIX and Solaris (both SYSVR4).