summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2021-08-23 19:29:11 +0700
committerPierre Joye <pierre.php@gmail.com>2021-08-23 19:29:11 +0700
commit05e0b65895c2f1eee1c75e4a0f1397a081f5461f (patch)
tree6f9314b0dd40130b271fd11af0ad88b207830bab /src
parentd8e894030e891c1ca60e5f97e3bf5c03a4a0d9f7 (diff)
downloadlibgd-05e0b65895c2f1eee1c75e4a0f1397a081f5461f.tar.gz
move and fix opt* extern declaration, windows MSC only
Diffstat (limited to 'src')
-rw-r--r--src/webpng.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webpng.c b/src/webpng.c
index c1f2b10..cfc2f78 100644
--- a/src/webpng.c
+++ b/src/webpng.c
@@ -45,6 +45,8 @@ static const char letters[] =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
#ifdef _MSC_VER
+extern int optind, opterr, optopt;
+extern char *optarg
/* This is only used here */
int
mkstemp (char *tmpl)
@@ -160,7 +162,7 @@ main(int argc, char **argv)
int trans_col = KEEP_TRANS;
int report_details = 0;
int print_alpha = 0;
- extern int optind, opterr, optopt, optarg;
+
/* Declare our image pointer */
gdImagePtr im = 0;
/* We'll set 'write' once we know the user's request