summaryrefslogtreecommitdiff
path: root/libavutil/mem.h
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-02-02 11:26:05 +0100
committerClément Bœsch <cboesch@gopro.com>2017-02-02 11:26:05 +0100
commit55b2cfa921c3ad5a821fc0ec85093a658b102caa (patch)
treeca64d0de007b747d21920d91ca0fe61f2206e480 /libavutil/mem.h
parenta0860b0a388d5471ae3e60fbf004509a3783f392 (diff)
parentf637046d3134a331e4b5a7243ac3dfb92735b8a5 (diff)
downloadffmpeg-55b2cfa921c3ad5a821fc0ec85093a658b102caa.tar.gz
Merge commit 'f637046d3134a331e4b5a7243ac3dfb92735b8a5'
* commit 'f637046d3134a331e4b5a7243ac3dfb92735b8a5': libavutil: Always use some GCC style attributes on clang Merged-by: Clément Bœsch <cboesch@gopro.com>
Diffstat (limited to 'libavutil/mem.h')
-rw-r--r--libavutil/mem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h
index f9d8884788..718a143c4c 100644
--- a/libavutil/mem.h
+++ b/libavutil/mem.h
@@ -97,7 +97,7 @@
#define DECLARE_ASM_CONST(n,t,v) \
AV_PRAGMA(DATA_ALIGN(v,n)) \
static const t __attribute__((aligned(n))) v
-#elif defined(__GNUC__)
+#elif defined(__GNUC__) || defined(__clang__)
#define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
#define DECLARE_ASM_CONST(n,t,v) static const t av_used __attribute__ ((aligned (n))) v
#elif defined(_MSC_VER)