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?
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...

(A "machine.h" to collect definitions like these might be a good idea. Other
candidates are an INLINE #define, structure packing controls, and a generic
double_to_int macro/function - quantize.c/quantize_xrpow is now rather
messy, and I suspect there are other places where system-specific rounding
code would be a significant win).

3) makefile.msvc: various changes. (New version attached)

I'd like to add proper dependency generation to the makefile, too. Can any
other MSVCers recommend a suitable command line dependency generator?

-- Mat.

Makefile.MSVC

Reply via email to