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 ================== */
|
/* ================= Test Helpers ================== */
|
||||||
|
|
||||||
/* OS/2 uses different function signatures for the helpers */
|
typedef double(SDLCALL *d_to_d_func)(double);
|
||||||
#ifdef __OS2__
|
typedef double(SDLCALL *dd_to_d_func)(double, double);
|
||||||
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
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Runs all the cases on a given function with a signature double -> double
|
* \brief Runs all the cases on a given function with a signature double -> double
|
||||||
|
|
Loading…
Reference in New Issue