summaryrefslogtreecommitdiff
path: root/includes/graphics.h
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-11-06 17:42:22 (GMT)
committer Simon <simon@hardwired.org.uk>2010-11-06 17:42:22 (GMT)
commit43cbb294ef68683785b6f77826c76e40a0473410 (patch)
tree59d977271e0b8693b4bf8e0d2f14dd098e80a5c5 /includes/graphics.h
parentc5df30d90bc5591efa2e176dbd6fa405cf985c84 (diff)
downloadpowder-43cbb294ef68683785b6f77826c76e40a0473410.zip
powder-43cbb294ef68683785b6f77826c76e40a0473410.tar.gz
Visual Studio and MinGW comapatbility
Diffstat (limited to 'includes/graphics.h')
-rw-r--r--includes/graphics.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/graphics.h b/includes/graphics.h
index 7019351..e23fe9d 100644
--- a/includes/graphics.h
+++ b/includes/graphics.h
@@ -63,13 +63,13 @@ int draw_tool_xy(pixel *vid_buf, int x, int y, int b, unsigned pc);
void draw_menu(pixel *vid_buf, int i, int hover);
-#ifdef WIN32
+#if defined(WIN32) && !defined(__GNUC__)
_inline void drawpixel(pixel *vid, int x, int y, int r, int g, int b, int a);
#else
extern inline void drawpixel(pixel *vid, int x, int y, int r, int g, int b, int a);
#endif
-#ifdef WIN32
+#if defined(WIN32) && !defined(__GNUC__)
_inline int drawchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a);
#else
extern inline int drawchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a);
@@ -99,7 +99,7 @@ int textwidthx(char *s, int w);
int textposxy(char *s, int width, int w, int h);
-#ifdef WIN32
+#if defined(WIN32) && !defined(__GNUC__)
_inline void blendpixel(pixel *vid, int x, int y, int r, int g, int b, int a);
#else
void blendpixel(pixel *vid, int x, int y, int r, int g, int b, int a);