summaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index b1203ad..e487218 100644
--- 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>
OpenPOWER on IntegriCloud