[Issue 5815] Using -O is causing wrong code to be generated for extern(C) method call.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 6 14:13:17 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5815


Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario at gmx.de


--- Comment #2 from Rainer Schuetze <r.sagitario at gmx.de> 2011-04-06 14:09:38 PDT ---
> extern(C) BOOL PathRemoveFileSpecA(LPTSTR);

You are probably using the wrong calling convention here, it should be
"extern(Windows)", which corresponds to __stdcall in while "extern(C)" is
__cdecl in the SDK C++ headers.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list