mirror of https://github.com/encounter/SDL.git
Test: Use SDLCALL in typedefs instead of ifdefs.
Thanks to @sezero for the tip.
This commit is contained in:
parent
2ec48b36ba
commit
0dbdf90e7b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue