Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From 46cc9298c38b9dd735fec3f39aa2d6e56a362410 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 28 Mar 2017 21:33:36 -0700 |
| 4 | Subject: [PATCH 2/2] mp4v2: Define __STRING if cdefs.h does not exist |
| 5 | |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 7 | --- |
| 8 | common/mp4v2/mp4util.h | 4 ++++ |
| 9 | 1 file changed, 4 insertions(+) |
| 10 | |
| 11 | diff --git a/common/mp4v2/mp4util.h b/common/mp4v2/mp4util.h |
| 12 | index 1f9cb64..1e7aced 100644 |
| 13 | --- a/common/mp4v2/mp4util.h |
| 14 | +++ b/common/mp4v2/mp4util.h |
| 15 | @@ -23,6 +23,10 @@ |
| 16 | #define __MP4_UTIL_INCLUDED__ |
| 17 | #include <assert.h> |
| 18 | |
| 19 | +#ifndef __STRING |
| 20 | +#define __STRING(x) #x |
| 21 | +#endif |
| 22 | + |
| 23 | #ifndef ASSERT |
| 24 | #define ASSERT(expr) \ |
| 25 | if (!(expr)) { \ |
| 26 | -- |
| 27 | 2.12.1 |
| 28 | |