From 0dbdf90e7b8cd33b3f362eacfb8b49098a67125c Mon Sep 17 00:00:00 2001 From: Pierre Wendling Date: Wed, 11 May 2022 12:54:16 -0400 Subject: [PATCH] Test: Use SDLCALL in typedefs instead of ifdefs. Thanks to @sezero for the tip. --- test/testautomation_math.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/testautomation_math.c b/test/testautomation_math.c index 595ed6738..44d21ce43 100644 --- a/test/testautomation_math.c +++ b/test/testautomation_math.c @@ -35,14 +35,8 @@ typedef struct /* ================= Test Helpers ================== */ -/* OS/2 uses different function signatures for the helpers */ -#ifdef __OS2__ -typedef double(_Syscall *d_to_d_func)(double); -typedef double(_Syscall *dd_to_d_func)(double, double); -#else -typedef double (*d_to_d_func)(double); -typedef double (*dd_to_d_func)(double, double); -#endif +typedef double(SDLCALL *d_to_d_func)(double); +typedef double(SDLCALL *dd_to_d_func)(double, double); /** * \brief Runs all the cases on a given function with a signature double -> double