]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix compile errors on MSVC2003 and earlier
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 Feb 2009 20:05:20 +0000 (20:05 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 Feb 2009 20:05:20 +0000 (20:05 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8729 d7cf8633-e32d-0410-b094-e92efae38249

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;