From 37bd964c41392adcfbb3910dada4e98ccde2d377 Mon Sep 17 00:00:00 2001 From: Aaron Dierking Date: Tue, 16 Oct 2018 15:41:53 -0700 Subject: [PATCH] dispatch_c99: remove unnecessary __printflike() definition Some C libraries (e.g. Bionic on Android) provide a `__printflike()` macro but this test always redefines it on Linux-based systems. bsdtests.h already has better logic to ensure it is available. --- tests/dispatch_c99.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/dispatch_c99.c b/tests/dispatch_c99.c index a4531e33b..0de3e1f81 100644 --- a/tests/dispatch_c99.c +++ b/tests/dispatch_c99.c @@ -21,14 +21,6 @@ #include #include -#ifdef __linux__ -// On Linux normally comes from libbsd overlay files, -// but the headers are not c99 compliant so we compile -// this test case without $(BSD_OVERLAY_CFLAGS) -#define __printflike(a,b) __attribute__((format(printf, a, b))) -#include -#endif - #include #include "dispatch_test.h"