Commit 0dbdf90e7b8cd33b3f362eacfb8b49098a67125c

Pierre Wendling 2022-05-11T12:54:16

Test: Use SDLCALL in typedefs instead of ifdefs. Thanks to @sezero for the tip.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/test/testautomation_math.c b/test/testautomation_math.c
index 595ed67..44d21ce 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