Skip to content

Commit

Permalink
SDL_ttf.c: remove unnecessary libc headers. move SDL includes before …
Browse files Browse the repository at this point in the history
…others.

showfont.c: move SDL includes before libc headers.

c.f.:  https://bugzilla.libsdl.org/show_bug.cgi?id=5107
  • Loading branch information
sezero committed Oct 29, 2020
1 parent 6125899 commit 80926a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
14 changes: 5 additions & 9 deletions SDL_ttf.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
3. This notice may not be removed or altered from any source distribution.
*/

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "SDL.h"
#include "SDL_cpuinfo.h"
#include "SDL_endian.h"

#include "SDL_ttf.h"

#include <ft2build.h>
#include FT_FREETYPE_H
Expand All @@ -31,11 +32,6 @@
#include FT_GLYPH_H
#include FT_TRUETYPE_IDS_H

#include "SDL.h"
#include "SDL_cpuinfo.h"
#include "SDL_endian.h"
#include "SDL_ttf.h"

#ifndef TTF_USE_HARFBUZZ
# define TTF_USE_HARFBUZZ 0
#endif
Expand Down
6 changes: 3 additions & 3 deletions showfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

/* A simple program to test the text rendering feature of the TTF library */

#include "SDL.h"
#include "SDL_ttf.h"

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

#include "SDL.h"
#include "SDL_ttf.h"

#define DEFAULT_PTSIZE 18
#define DEFAULT_TEXT "The quick brown fox jumped over the lazy dog"
#define WIDTH 640
Expand Down

0 comments on commit 80926a4

Please sign in to comment.