OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cfaf9c
)
avutil/common: error out with clear message if __STDC_CONSTANT_MACROS is not defined...
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 5 Nov 2013 10:49:09 +0000
(11:49 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 5 Nov 2013 21:10:02 +0000
(22:10 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/common.h
patch
|
blob
|
history
diff --git
a/libavutil/common.h
b/libavutil/common.h
index
b1203ad
..
e487218
100644
(file)
--- a/
libavutil/common.h
+++ b/
libavutil/common.h
@@
-26,6
+26,10
@@
#ifndef AVUTIL_COMMON_H
#define AVUTIL_COMMON_H
+#if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS) && !defined(UINT64_C)
+#error missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
+#endif
+
#include <errno.h>
#include <inttypes.h>
#include <limits.h>