From 2119bb8f51d5cbf946d8e87974a2d95016133942 Mon Sep 17 00:00:00 2001
From: Benoit Fouet <benoit.fouet@free.fr>
Date: Tue, 18 Mar 2008 16:29:47 +0000
Subject: revert r12489.

Originally committed as revision 12490 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavutil/mem.h | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

(limited to 'libavutil/mem.h')

diff --git a/libavutil/mem.h b/libavutil/mem.h
index c68117d43d..f8df42cfe7 100644
--- a/libavutil/mem.h
+++ b/libavutil/mem.h
@@ -42,12 +42,6 @@
     #define DECLARE_ASM_CONST(n,t,v)    static const t v
 #endif
 
-#ifdef __GNUC__
-    #define av_malloc_attrib __attribute__((__malloc__))
-#else
-    #define av_malloc_attrib
-#endif
-
 /**
  * Allocate a block of \p size bytes with alignment suitable for all
  * memory accesses (including vectors if available on the CPU).
@@ -56,7 +50,7 @@
  * it.
  * @see av_mallocz()
  */
-void *av_malloc(unsigned int size) av_malloc_attrib;
+void *av_malloc(unsigned int size);
 
 /**
  * Allocate or reallocate a block of memory.
@@ -91,7 +85,7 @@ void av_free(void *ptr);
  * it.
  * @see av_malloc()
  */
-void *av_mallocz(unsigned int size) av_malloc_attrib;
+void *av_mallocz(unsigned int size);
 
 /**
  * Duplicate the string \p s.
@@ -99,7 +93,7 @@ void *av_mallocz(unsigned int size) av_malloc_attrib;
  * @return Pointer to a newly allocated string containing a
  * copy of \p s or NULL if it cannot be allocated.
  */
-char *av_strdup(const char *s) av_malloc_attrib;
+char *av_strdup(const char *s);
 
 /**
  * Free a memory block which has been allocated with av_malloc(z)() or
-- 
cgit v1.2.3