Skip to content

Commit 37bd964

Browse files
committed
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.
1 parent 0710b29 commit 37bd964

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/dispatch_c99.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@
2121
#include <dispatch/dispatch.h>
2222
#include <stdlib.h>
2323

24-
#ifdef __linux__
25-
// On Linux normally comes from libbsd overlay files,
26-
// but the headers are not c99 compliant so we compile
27-
// this test case without $(BSD_OVERLAY_CFLAGS)
28-
#define __printflike(a,b) __attribute__((format(printf, a, b)))
29-
#include <inttypes.h>
30-
#endif
31-
3224
#include <bsdtests.h>
3325
#include "dispatch_test.h"
3426

0 commit comments

Comments
 (0)