aboutsummaryrefslogtreecommitdiff
path: root/ports/giflib/disable-GifDrawBoxedText8x8-win32.patch
blob: 095edb3cec76856ba158dbaaa9bd79ce2aa509bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/gif_font.c b/gif_font.c
index d90783c..b682c7a 100644
--- a/gif_font.c
+++ b/gif_font.c
@@ -204,6 +204,7 @@ GifDrawRectangle(SavedImage *Image,
         memset(bp + (i * Image->ImageDesc.Width), color, (size_t)w);
 }
 
+#if !defined(_WIN32)
 void
 GifDrawBoxedText8x8(SavedImage *Image,
               const int x, const int y,
@@ -257,5 +258,6 @@ GifDrawBoxedText8x8(SavedImage *Image,
 		   border + LineCount * GIF_FONT_HEIGHT + border, fg);
     }
 }
+#endif
 
 /* end */
diff --git a/gif_lib.h b/gif_lib.h
index ebdbd3c..41bf7a2 100644
--- a/gif_lib.h
+++ b/gif_lib.h
@@ -290,10 +290,12 @@ extern void GifDrawRectangle(SavedImage *Image,
                    const int x, const int y,
                    const int w, const int d, const int color);
 
+#if !defined(_WIN32)
 extern void GifDrawBoxedText8x8(SavedImage *Image,
                           const int x, const int y,
                           const char *legend,
                           const int border, const int bg, const int fg);
+#endif
 
 #ifdef __cplusplus
 }