Permalink
Browse files

Quick c pragma fix

  • Loading branch information...
1 parent b6b592b commit f048848d427be05f50448a58f74d4cf90d4d1cbf @kthakore kthakore committed Dec 7, 2009
Showing with 12 additions and 2 deletions.
  1. +1 −1 CHANGELOG
  2. +1 −1 lib/SDL.pm
  3. +10 −0 src/TTF/objects/TTF_Font.xs
View
@@ -1,6 +1,6 @@
Revision history for Perl extension SDL_perl.
-* 2.3_2
+* 2.3_3
- SDL::Image implemented and tested [#72] [kthakore]
- FreeBSD SDL test clean up [#75] [kthakore]
- Handle GFX seperate headers in Build [FROGGS,kthakore]
View
@@ -54,7 +54,7 @@ sub import {
$self->export_to_level(1, @_);
SDL::Constants->export_to_level(1);
}
-our $VERSION = '2.3_2'; #Development Release
+our $VERSION = '2.3_3'; #Development Release
$VERSION = eval $VERSION;
print "$VERSION" if (defined($ARGV[0]) && ($ARGV[0] eq '--SDLperl'));
@@ -6,8 +6,12 @@
#define aTHX_
#endif
+
#include <SDL.h>
+#ifdef HAVE_SDL_TTF
#include <SDL_ttf.h>
+#endif
+
MODULE = SDL::TTF_Font PACKAGE = SDL::TTF_Font PREFIX = ttf_font_
@@ -17,8 +21,14 @@ SDL_TTF_Font - The opaque holder of a loaded font
=cut
+#ifdef HAVE_SDL_TTF
+
+
void
ttf_font_DESTROY(self)
TTF_Font *self
CODE:
TTF_CloseFont(self);
+
+
+#endif

0 comments on commit f048848

Please sign in to comment.