Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graphics/a2png: Fix build with C99 inline semantics
- This fixes the build on arm and i386. PR: 262267
- Loading branch information
1 parent
ae8a681
commit 06dfcbd
Showing
4 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- src/image.c.orig 2006-10-05 13:36:26 UTC | ||
+++ src/image.c | ||
@@ -148,7 +148,6 @@ void image_resize_crop(engine_t *e, const int width_px | ||
#endif | ||
} | ||
|
||
-inline | ||
void image_set_foreground(engine_t *p, const rgb_t* color) { | ||
#ifdef ENABLE_CAIRO | ||
static const double alpha = 1.0; | ||
@@ -286,7 +285,6 @@ image_points_t image_get_font_max_metrics(engine_t *p, | ||
return r; | ||
} | ||
|
||
-inline | ||
void image_move_to(engine_t *en, const image_point_t x, const image_point_t y) { | ||
en->pos.x = x; | ||
en->pos.y = y; | ||
@@ -296,7 +294,6 @@ void image_move_to(engine_t *en, const image_point_t x | ||
#endif | ||
} | ||
|
||
-inline | ||
image_points_t image_get_position(engine_t *en) { | ||
#ifdef ENABLE_CAIRO | ||
static image_points_t r; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- src/image.h.orig 2021-12-03 16:02:51 UTC | ||
+++ src/image.h | ||
@@ -22,5 +22,6 @@ void image_putc(engine_t *en, const char c); | ||
void image_set_foreground(engine_t *p, const rgb_t* color); | ||
void image_fill_rect(engine_t *en, const image_point_t x1, const image_point_t y1, const image_point_t x2, const image_point_t y2); | ||
void image_move_to(engine_t *en, const image_point_t x, const image_point_t y); | ||
+void image_show_text(engine_t *en, const char* text); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- src/parse.c.orig 2006-10-05 13:36:26 UTC | ||
+++ src/parse.c | ||
@@ -22,9 +22,8 @@ void scan_rgb(const char* s, rgb_t* color) { | ||
|
||
// returns 1 if not EOF, 0 if EOF | ||
// see note in parse_html for a rationale of this rather odd tokenizer function | ||
-inline | ||
int fgettok(FILE *f, char* buf, size_t buflen) { | ||
- char c; | ||
+ int c; | ||
|
||
// read until we get start of a token | ||
do { |