Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed build with older SDL headers
  • Loading branch information
slouken committed Feb 1, 2016
1 parent fbe8907 commit 3c46987
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SDL_ttf.h
Expand Up @@ -61,6 +61,11 @@ extern "C" {
#define TTF_PATCHLEVEL SDL_TTF_PATCHLEVEL
#define TTF_VERSION(X) SDL_TTF_VERSION(X)

/* Make sure this is defined (only available in newer SDL versions) */
#ifndef SDL_DEPRECATED
#define SDL_DEPRECATED
#endif

/* This function gets the version of the dynamically linked SDL_ttf library.
it should NOT be used to fill a version structure, instead you should
use the SDL_TTF_VERSION() macro.
Expand Down

0 comments on commit 3c46987

Please sign in to comment.