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:
Sam Lantinga
2022-11-26 01:41:46 -08:00
parent bc5677db95
commit 63f307fe1f
176 changed files with 448 additions and 712 deletions

View File

@@ -14,9 +14,9 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
/*
* includes
*/
#include "SDL.h"
#include <stdlib.h>
#ifndef SDL_HAPTIC_DISABLED
#include "SDL.h"
static SDL_Haptic *haptic;
@@ -353,13 +353,4 @@ HapticPrintSupported(SDL_Haptic * ptr)
SDL_Log(" status\n");
}
#else
int
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Haptic support.\n");
return 1;
}
#endif
/* vi: set ts=4 sw=4 expandtab: */