summaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-09-03 09:32:37 (GMT)
committer Simon <simon@hardwired.org.uk>2010-09-03 09:32:37 (GMT)
commit2f0d0f5d92312fc02dc34d30f99b7cdeb09eccc9 (patch)
tree4a6c5cbb8f3b3428b634cae04bad675e47c997fa /graphics.h
parent5fef47a1c213870754f2f11ead0ab142400cdb41 (diff)
downloadpowder-2f0d0f5d92312fc02dc34d30f99b7cdeb09eccc9.zip
powder-2f0d0f5d92312fc02dc34d30f99b7cdeb09eccc9.tar.gz
Fix for Linux building
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics.h b/graphics.h
index edeab38..2bfacaa 100644
--- a/graphics.h
+++ b/graphics.h
@@ -66,13 +66,13 @@ void draw_menu(pixel *vid_buf, int i, int hover);
#ifdef WIN32
_inline void drawpixel(pixel *vid, int x, int y, int r, int g, int b, int a);
#else
-inline void drawpixel(pixel *vid, int x, int y, int r, int g, int b, int a);
+extern inline void drawpixel(pixel *vid, int x, int y, int r, int g, int b, int a);
#endif
#ifdef WIN32
_inline int drawchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a);
#else
-inline int drawchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a);
+extern inline int drawchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a);
#endif
int drawtext(pixel *vid, int x, int y, char *s, int r, int g, int b, int a);