config: Make sure HAVE_TRUNC and HAVE_TRUNCF are defined as appropriate.

The configure/cmake scripts were checking for these functions but we didn't
have the SDL_config.h.* pieces in place. The other config headers are best
guesses.
This commit is contained in:
Ryan C. Gordon
2020-11-14 02:16:41 -05:00
parent 5c34c973e6
commit bee8db3b04
10 changed files with 20 additions and 0 deletions

View File

@@ -166,6 +166,8 @@ typedef unsigned int uintptr_t;
#define HAVE_SQRTF 1
#define HAVE_TAN 1
#define HAVE_TANF 1
#define HAVE_TRUNC 1
#define HAVE_TRUNCF 1
#if defined(_MSC_VER)
/* These functions were added with the VC++ 2013 C runtime library */
#if _MSC_VER >= 1800