<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    The prolem seems to be that in the time_s.h file the check for<br>
    <br>
    <tt>#if defined(MINGW_HAS_SECURE_API)</tt><tt><br>
    </tt><br>
    is false so the secured API's do not get compiled in. However,
    localtime_r requires the localtime_s function.<br>
    David<br>
    <br>
    <div class="moz-signature">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <img moz-do-not-send="false"
        src="cid:part1.00090605.01050608@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">+1 757 546 3401 (o)</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:#1F497D;
          \" lang="EN-GB">+1 757 286 0022 (m)</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;t"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";"
          lang="EN-GB"><a
            href="mailto:david.robison@openroadsconsulting.com">david.robison@openroadsconsulting.com</a></span></p>
      <p
        style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;><a
        href="http://www.openroadsconsulting.com/"><span
        lang=EN-GB style="
        font-size:10.0pt;font-family:"arial","sans-serif";'=""><a class="moz-txt-link-abbreviated" href="http://www.openroadsconsulting.com">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>
    <div class="moz-cite-prefix">On 3/19/2015 11:42 AM, David R. Robison
      wrote:<br>
    </div>
    <blockquote cite="mid:550AEE7E.9070809@openroadsconsulting.com"
      type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      Unfortunately, that didn't help. It still gives the same error.
      David<br>
      <br>
      <div class="moz-signature">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        <img moz-do-not-send="false"
          src="cid:part3.07020603.09040803@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">+1 757 546 3401 (o)</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:#1F497D;

            \" lang="EN-GB">+1 757 286 0022 (m)</span></p>
        <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;t"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";"
            lang="EN-GB"><a moz-do-not-send="true"
              href="mailto:david.robison@openroadsconsulting.com">david.robison@openroadsconsulting.com</a></span></p>
        <p
          style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;><a

          href="http://www.openroadsconsulting.com/"><span

          lang=EN-GB style="
          font-size:10.0pt;font-family:"arial","sans-serif";'=""><a
            moz-do-not-send="true" class="moz-txt-link-abbreviated"
            href="http://www.openroadsconsulting.com">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>
      <div class="moz-cite-prefix">On 3/19/2015 10:38 AM, Steve Lhomme
        wrote:<br>
      </div>
      <blockquote
        cite="mid:BLU436-SMTP2532B75073D5243AB66B3909A010@phx.gbl"
        type="cite">
        <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
                moz-do-not-send="true"
                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:part7.02000709.06060509@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 moz-do-not-send="true"
                        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 moz-do-not-send="true"
                        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 moz-do-not-send="true"
                        href="mailto:david.robison@openroadsconsulting.com"
                        target="_blank">david.robison@openroadsconsulting.com</a></span></p>
                  <p><a moz-do-not-send="true"
                      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 moz-do-not-send="true"
                href="https://mailman.videolan.org/listinfo/vlc-devel"
                target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a>
</pre>
      </blockquote>
      <br>
      <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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
<a class="moz-txt-link-freetext" href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a>
</pre>
    </blockquote>
    <br>
  <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 />
</body>
</html>