aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/mem.h
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2008-03-18 16:29:47 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-03-18 16:29:47 +0000
commit2119bb8f51d5cbf946d8e87974a2d95016133942 (patch)
treea4cfee50d5b37ab8020f1292b4041b4a26b857c9 /libavutil/mem.h
parent6544f48f038552973a552401cea5d4e8f1fc9c0a (diff)
downloadffmpeg-2119bb8f51d5cbf946d8e87974a2d95016133942.tar.gz
revert r12489.
Originally committed as revision 12490 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/mem.h')
-rw-r--r--libavutil/mem.h12
1 files changed, 3 insertions, 9 deletions
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