]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cap_ogg.c
fix compile errors on MSVC2003 and earlier
[xonotic/darkplaces.git] / cap_ogg.c
index 81bde28d1a49d8c2ac96735becf16c868c36cad2..b75c3946e0e4cb18d6df04f5afc69fac0dadde16 100644 (file)
--- a/cap_ogg.c
+++ b/cap_ogg.c
@@ -16,11 +16,19 @@ static cvar_t cl_capturevideo_ogg_theora_sharpness = {CVAR_SAVE, "cl_capturevide
 static cvar_t cl_capturevideo_ogg_vorbis_quality = {CVAR_SAVE, "cl_capturevideo_ogg_vorbis_quality", "1", "audio quality (-1 to 10); higher is better"};
 
 // ogg.h stuff
+#ifdef _MSC_VER
+typedef __int16 ogg_int16_t;
+typedef unsigned __int16 ogg_uint16_t;
+typedef __int32 ogg_int32_t;
+typedef unsigned __int32 ogg_uint32_t;
+typedef __int64 ogg_int64_t;
+#else
 typedef int16_t ogg_int16_t;
 typedef u_int16_t ogg_uint16_t;
 typedef int32_t ogg_int32_t;
 typedef u_int32_t ogg_uint32_t;
 typedef int64_t ogg_int64_t;
+#endif
 
 typedef struct {
   long endbyte;