From 49e17f8407f88422fba83e3e31ba55cf9534f7ba Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 11 Oct 2003 08:19:39 +0000 Subject: [PATCH] recommit of #define DEBUG fix by (Glenn Maynard ) Originally committed as revision 2352 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/common.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/libavcodec/common.h b/libavcodec/common.h index c1b1d47485..5cd4231774 100644 --- a/libavcodec/common.h +++ b/libavcodec/common.h @@ -99,19 +99,23 @@ typedef signed __int64 int64_t; # define int64_t_C(c) (c ## i64) # define uint64_t_C(c) (c ## i64) -# define inline __inline +# ifdef HAVE_AV_CONFIG_H +# define inline __inline +# endif # else # define int64_t_C(c) (c ## LL) # define uint64_t_C(c) (c ## ULL) # endif /* __MINGW32__ */ -# ifdef _DEBUG -# define DEBUG -# endif +# ifdef HAVE_AV_CONFIG_H +# ifdef _DEBUG +# define DEBUG +# endif -# define snprintf _snprintf -# define vsnprintf _vsnprintf +# define snprintf _snprintf +# define vsnprintf _vsnprintf +# endif /* CONFIG_WIN32 end */ #elif defined (CONFIG_OS2)