<div dir="ltr">For some reason mingw doesn't inline the code properly. I had to modify C:\msys64\mingw32\i686-w64-mingw32\include\sec_api\time_s.h the following way:<br><br>#define localtime_s(tm, time) _localtime32_s(tm, time)<br>//__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime32_s(_Tm,_Time); }<br><br><br>#define localtime_s(tm, time) _localtime64_s(tm, time)<br>//__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime64_s(_Tm,_Time); }<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 19, 2015 at 3:19 PM, David R. Robison <span dir="ltr"><<a href="mailto:david.robison@openroadsconsulting.com" target="_blank">david.robison@openroadsconsulting.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    I just cloned the VLC master and tried to compile it for windows. I
    am getting the following error:<br>
    <br>
    <tt>make  all-recursive</tt><tt><br>
    </tt><tt>make[1]: Entering directory `/home/david/vlc/win32'</tt><tt><br>
    </tt><tt>Making all in compat</tt><tt><br>
    </tt><tt>make[2]: Entering directory `/home/david/vlc/win32/compat'</tt><tt><br>
    </tt><tt>make  all-am</tt><tt><br>
    </tt><tt>make[3]: Entering directory `/home/david/vlc/win32/compat'</tt><tt><br>
    </tt><tt>  CC       localtime_r.lo</tt><tt><br>
    </tt><tt>../../extras/package/win32/../../../compat/localtime_r.c:
      In function ‘localtime_r’:</tt><tt><br>
    </tt><tt>../../extras/package/win32/../../../compat/localtime_r.c:38:5:

      error: implicit declaration of function ‘localtime_s’
      [-Werror=implicit-function-declaration]</tt><tt><br>
    </tt><tt>     return ((errno = localtime_s(result, timep)) == 0) ?
      result : NULL;</tt><tt><br>
    </tt><tt>     ^</tt><tt><br>
    </tt><tt>cc1: some warnings being treated as errors</tt><tt><br>
    </tt><tt>make[3]: *** [localtime_r.lo] Error 1</tt><tt><br>
    </tt><tt>make[3]: Leaving directory `/home/david/vlc/win32/compat'</tt><tt><br>
    </tt><tt>make[2]: *** [all] Error 2</tt><tt><br>
    </tt><tt>make[2]: Leaving directory `/home/david/vlc/win32/compat'</tt><tt><br>
    </tt><tt>make[1]: *** [all-recursive] Error 1</tt><tt><br>
    </tt><tt>make[1]: Leaving directory `/home/david/vlc/win32'</tt><tt><br>
    </tt><tt>make: *** [all] Error 2</tt><tt><br>
    </tt><br>
    Any idea what may be wrong?<br>
    David
    <div>-- <br>
      
      <img src="cid:part1.07020606.09010202@openroadsconsulting.com">
      <p style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">----------------------------------------------------------------------------</span></p>
      <p style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red" lang="EN-GB">David R Robison</span></p>
      <p style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060" lang="EN-GB">Principal Systems Engineer</span></b></p>
      <p style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-GB"><a href="tel:%2B1%20757%20546%203401" value="+17575463401" target="_blank">+1 757 546 3401</a> (o)</span></p>
      <p style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt"><span lang="EN-GB"><a href="tel:%2B1%20757%20286%200022" value="+17572860022" target="_blank">+1 757 286 0022</a> (m)</span></p>
      <p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"" lang="EN-GB"><a href="mailto:david.robison@openroadsconsulting.com" target="_blank">david.robison@openroadsconsulting.com</a></span></p>
      <p><a href="http://www.openroadsconsulting.com" target="_blank">www.openroadsconsulting.com</a></p>
      <p style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">----------------------------------------------------------------------------</span></p>
      <p style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red" lang="EN-GB">Open Roads Consulting </span></p>
      <p style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red" lang="EN-GB">A Q-Free Company</span></p>
      <p style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060" lang="EN-GB">103 Watson Rd. Chesapeake VA 23320</span></p>
    </div>
  <br>
<br>
<hr>
This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.<br>
If you are not the intended recipient, please delete this email immediately.<br>
</div>


<br>_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
<br></blockquote></div><br></div>