From 1dc83fd7debf9611901e3501ae404222e2b71b0e Mon Sep 17 00:00:00 2001 From: Rahul Bedarkar Date: Mon, 22 Aug 2016 19:04:47 +0530 Subject: [PATCH] tests: define __STDC_LIMIT_MACROS With glibc 2.16, we get following build error when building jack2: [193/247] cxx: tests/iodelay.cpp -> build/tests/iodelay.cpp.4.o ../tests/iodelay.cpp:171:43: error: 'UINT32_MAX' was not declared in this scope ../tests/iodelay.cpp:171:55: error: 'UINT32_MAX' was not declared in this scope ../tests/iodelay.cpp:172:44: error: 'UINT32_MAX' was not declared in this scope ../tests/iodelay.cpp:172:56: error: 'UINT32_MAX' was not declared in this scope In glibc 2.17 or older version, Header defines these macros for C++ only if explicitly requested by defining __STDC_LIMIT_MACROS. We can't use since it requires C++11 standard. This build issue found by Buildroot autobuilder. http://autobuild.buildroot.net/results/369/369ce208ffea43dad75ba0a13469159b341e3bf5/ Signed-off-by: Rahul Bedarkar --- tests/iodelay.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/iodelay.cpp b/tests/iodelay.cpp index 1ef470fd..f5c58364 100644 --- a/tests/iodelay.cpp +++ b/tests/iodelay.cpp @@ -20,6 +20,7 @@ #include #include +#define __STDC_LIMIT_MACROS #include #include #include