mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-27 10:51:54 +00:00
Remove SDL_config.h from the public headers
The SDL headers are no longer dependent on the build configuration. Fixes https://github.com/libsdl-org/SDL/issues/6643 and https://github.com/libsdl-org/SDL/issues/6641
This commit is contained in:
@@ -24,9 +24,6 @@
|
||||
Used by the test framework and test cases.
|
||||
|
||||
*/
|
||||
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
/* Assert check message format */
|
||||
|
||||
@@ -20,12 +20,8 @@
|
||||
*/
|
||||
|
||||
/* Ported from original test/common.c file. */
|
||||
|
||||
#include "SDL_config.h"
|
||||
#include "SDL_test.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
static const char *video_usage[] = {
|
||||
"[--video driver]", "[--renderer driver]", "[--gldebug]",
|
||||
"[--info all|video|modes|render|event|event_motion]",
|
||||
|
||||
@@ -26,9 +26,6 @@
|
||||
Rewritten for test lib by Andreas Schiffler.
|
||||
|
||||
*/
|
||||
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
|
||||
|
||||
@@ -25,9 +25,6 @@
|
||||
Original source code contributed by A. Schiffler for GSOC project.
|
||||
|
||||
*/
|
||||
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
/* ---- 8x8 font definition ---- */
|
||||
|
||||
@@ -24,27 +24,11 @@
|
||||
Data generators for fuzzing test data in a reproducible way.
|
||||
|
||||
*/
|
||||
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include <limits.h>
|
||||
/* Visual Studio 2008 doesn't have stdint.h */
|
||||
#if defined(_MSC_VER) && _MSC_VER <= 1500
|
||||
#define UINT8_MAX _UI8_MAX
|
||||
#define UINT16_MAX _UI16_MAX
|
||||
#define UINT32_MAX _UI32_MAX
|
||||
#define INT64_MIN _I64_MIN
|
||||
#define INT64_MAX _I64_MAX
|
||||
#define UINT64_MAX _UI64_MAX
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <float.h>
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
#include <float.h> /* Needed for FLT_MAX and DBL_EPSILON */
|
||||
#include <limits.h> /* Needed for UCHAR_MAX, etc. */
|
||||
|
||||
/**
|
||||
* Counter for fuzzer invocations
|
||||
*/
|
||||
|
||||
@@ -18,15 +18,9 @@
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <stdlib.h> /* Needed for exit() */
|
||||
|
||||
/* Invalid test name/description message format */
|
||||
#define SDLTEST_INVALID_NAME_FORMAT "(Invalid)"
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
/* GIMP RGB C-Source image dump (blit.c) */
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
/* GIMP RGB C-Source image dump (alpha.c) */
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
/* GIMP RGBA C-Source image dump (face.c) */
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
/* GIMP RGB C-Source image dump (primitives.c) */
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
/* GIMP RGB C-Source image dump (alpha.c) */
|
||||
|
||||
@@ -29,18 +29,11 @@
|
||||
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
|
||||
# define _CRT_SECURE_NO_WARNINGS
|
||||
#endif
|
||||
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include <stdarg.h> /* va_list */
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "SDL.h"
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
#include <time.h> /* Needed for localtime() */
|
||||
|
||||
/* work around compiler warning on older GCCs. */
|
||||
#if (defined(__GNUC__) && (__GNUC__ <= 2))
|
||||
static size_t
|
||||
|
||||
@@ -50,9 +50,6 @@
|
||||
** documentation and/or software. **
|
||||
***********************************************************************
|
||||
*/
|
||||
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
/* Forward declaration of static helper function */
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
#include "SDL_config.h"
|
||||
#include "SDL_assert.h"
|
||||
#include "SDL_stdinc.h"
|
||||
#include "SDL_log.h"
|
||||
|
||||
@@ -27,15 +27,11 @@
|
||||
Original source code contributed by A. Schiffler for GSOC project.
|
||||
|
||||
*/
|
||||
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "SDL_test.h"
|
||||
|
||||
#include <stdlib.h> /* Needed for srand() and rand() */
|
||||
#include <time.h> /* Needed for time() */
|
||||
|
||||
/* Initialize random number generator with two integer variables */
|
||||
|
||||
void SDLTest_RandomInit(SDLTest_RandomContext * rndContext, unsigned int xi, unsigned int ci)
|
||||
|
||||
Reference in New Issue
Block a user