[Flac-dev] Patch : Fix cross-compiling from Linux to windows

Josh Coalson xflac at yahoo.com
Fri May 23 10:36:24 PDT 2008


--- Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:

> Hi all,
> 
> The following patch fixes cross compiling from Linux to windows.
> 
> The existing code was doing:
> 
>     #if !defined _MSC_VER && !defined __MINGW32__ && !defined __EMX__
>     #include <stdint.h> /* for SIZE_MAX in case limits.h didn't get
> it */
>     #endif
> 
> when it seems to make much more sense to just test for the presence
> of <stdint.h> and do:
> 
>     #ifdef HAVE_STDINT_H
>     #include <stdint.h> /* for SIZE_MAX in case limits.h didn't get
> it */
>     #endif

hmm, ok, will do that.  the VC projects will also have to be fixed
because they don't have a config.h

> It is [now] possible to cross compile from Linux to windows, but the
> tests don't currently work. Josh, are you interested in fixing
> this? It should be possible to run the tests under Wine.

the tests work for me under cygwin, I run them for every release.
what happens for you?



      


More information about the Flac-dev mailing list