From 7d126079d187081b94c272130fa8d91d2f872483 Mon Sep 17 00:00:00 2001
From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Wed, 18 Feb 2009 20:05:20 +0000
Subject: [PATCH] fix compile errors on MSVC2003 and earlier

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8729 d7cf8633-e32d-0410-b094-e92efae38249
---
 cap_ogg.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/cap_ogg.c b/cap_ogg.c
index 81bde28d..b75c3946 100644
--- 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;
-- 
2.39.5