Mathew Hendrey wrote:
> Morning all,
>
> A few MSVC fixes needed for 3.34
>
> 1) timestatus.c: move #include <windows.h> stuff (lines 136-142) to the
very
> beginning of the file. Anyone had any other problems with the new timing
> code?
Or you can rearrange the #undef FLOAT before the #include <windows.h> like
so:
#ifdef _MSC_VER
# define WIN32_LEAN_AND_MEAN
# ifdef FLOAT
# undef FLOAT
# endif
# include <windows.h>
#endif
#include <time.h>
> 2) get_audio.c: after includes (line 10), add
>
> #ifdef _MSC_VER
> typedef unsigned short u_short;
> typedef unsigned int u_int;
> typedef unsigned long u_long;
> #endif
>
> Where are these normally defined? wavheader.h has u_short and u_int (not
> u_long), but the new wav code doesn't include it...
Actually, wavheader.h is included later in get_audio.c. If you add a define
for u_long (which should probably be "unsigned int" to avoid breaking on
64-bit systems) and move the include to the top of get_audio.c, it also
works.
> I'd like to add proper dependency generation to the makefile, too. Can any
> other MSVCers recommend a suitable command line dependency generator?
Sorry, don't know about that one.
-Jake
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )