make sure NDEBUG is not defined already before defining it
authorDiego Pettenò <flameeyes@gmail.com>
Fri, 30 Jun 2006 07:45:31 +0000 (07:45 +0000)
committerGuillaume Poirier <gpoirier@mplayerhq.hu>
Fri, 30 Jun 2006 07:45:31 +0000 (07:45 +0000)
Patch by Diego 'Flameeyes' Petteno flameeyes AA gentoo PP org
Original thread:
Date: Jun 30, 2006 1:09 AM
Subject: [Ffmpeg-devel] [PATCH] Avoid warning on NDEBUG redefinition

Originally committed as revision 5557 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/common.h

index ae325122a55744f74cea8b8674c2023dd56bc36e..c951f5b2b85a96a9d506c796a75cff4fa3af003c 100644 (file)
@@ -288,7 +288,7 @@ static inline float floorf(float f) {
 
 /* debug stuff */
 
-#    ifndef DEBUG
+#    if !defined(DEBUG) && !defined(NDEBUG)
 #        define NDEBUG
 #    endif
 #    include <assert.h>