title: stdcall required on import function?
body: <p>I'm curious about this:</p>
  
  <p>When I import a function from a dynamic link library that exports using <strong>stdcall</strong> calling convention, is it mandatory to add <strong>stdcall</strong> before <strong>external</strong> in Delphi starting from version 7?</p>
  
  <p>i.e.</p>
  
  <pre><code>LIBNAME int __stdcall Foo(void);
  </code></pre>
  
  <p>as</p>
  
  <pre><code>function Foo: Integer; stdcall; external 'libname.dll';
  </code></pre>
  
  <p>or I can get away with just</p>
  
  <pre><code>function Foo: Integer; external 'libname.dll';
  </code></pre>
  
  <p>IIRC by default it will use <strong>stdcall</strong> but I'm not 100% sure on this, your opinion is required.</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>The question is related to 32bit library, Arnaud Bouchez has made a good point that for 64bit, the calling convention is not taken into consideration since there's only one.</p>