From: havoc Date: Wed, 18 Feb 2009 20:05:20 +0000 (+0000) Subject: fix compile errors on MSVC2003 and earlier X-Git-Tag: xonotic-v0.1.0preview~1866 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=7d126079d187081b94c272130fa8d91d2f872483;p=xonotic%2Fdarkplaces.git fix compile errors on MSVC2003 and earlier git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8729 d7cf8633-e32d-0410-b094-e92efae38249 --- 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;