diff options
author | Pierre Joye <pierre.php@gmail.com> | 2021-08-23 19:08:34 +0700 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2021-08-23 19:08:34 +0700 |
commit | d8e894030e891c1ca60e5f97e3bf5c03a4a0d9f7 (patch) | |
tree | 33e2e3383df4a89c43b6162836d5ec7fa15e425e /src | |
parent | e19f01173775f4d864ed2d62078e8dd4c3630c1c (diff) | |
download | libgd-d8e894030e891c1ca60e5f97e3bf5c03a4a0d9f7.tar.gz |
webpng mkstemp, windows MSC only
Diffstat (limited to 'src')
-rw-r--r-- | src/webpng.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webpng.c b/src/webpng.c index cc1a673..c1f2b10 100644 --- a/src/webpng.c +++ b/src/webpng.c @@ -44,6 +44,7 @@ static void usage(const char *msg) static const char letters[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; +#ifdef _MSC_VER /* This is only used here */ int mkstemp (char *tmpl) @@ -126,6 +127,7 @@ mkstemp (char *tmpl) errno = EEXIST; return -1; } +#endif static void err(const char *fmt, ...) { |