Navigation Menu

Skip to content

Commit

Permalink
IMG_jpg.c: move SDL_image.h include before libc headers.
Browse files Browse the repository at this point in the history
showanim.c, showimage.c: remove unnecessary libc header includes.

c.f.:  https://bugzilla.libsdl.org/show_bug.cgi?id=5107
  • Loading branch information
sezero committed Oct 29, 2020
1 parent ab1258b commit 5e620f0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions IMG_jpg.c
Expand Up @@ -21,11 +21,11 @@

/* This is a JPEG image file loading framework */

#include "SDL_image.h"

#include <stdio.h>
#include <setjmp.h>

#include "SDL_image.h"

#if !(defined(__APPLE__) || defined(SDL_IMAGE_USE_WIC_BACKEND)) || defined(SDL_IMAGE_USE_COMMON_BACKEND)

#ifdef LOAD_JPG
Expand Down
4 changes: 0 additions & 4 deletions showanim.c
Expand Up @@ -19,10 +19,6 @@
3. This notice may not be removed or altered from any source distribution.
*/

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include "SDL.h"
#include "SDL_image.h"

Expand Down
4 changes: 0 additions & 4 deletions showimage.c
Expand Up @@ -19,10 +19,6 @@
3. This notice may not be removed or altered from any source distribution.
*/

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include "SDL.h"
#include "SDL_image.h"

Expand Down

0 comments on commit 5e620f0

Please sign in to comment.