vcpkg/ports/giflib/msvc-guard-unistd-h.patch
Kai Pastor 635361d801
[giflib] Update to 5.2.1 (#18836)
* Update to 5.2.1

* Modernize portfile

* Enable shared lib

* Handle system reallocarray

* x-add-version

* Disable GifDrawBoxedText8x8 on windows

* Update git-tree

* Add separate patch for GifDrawBoxedText8x8

* Update git-tree
2021-07-23 09:02:46 -07:00

15 lines
326 B
Diff

diff --git a/gif_hash.h b/gif_hash.h
index 6a1b585..e6712e8 100644
--- a/gif_hash.h
+++ b/gif_hash.h
@@ -9,7 +9,9 @@ SPDX-License-Identifier: MIT
#ifndef _GIF_HASH_H_
#define _GIF_HASH_H_
+#ifndef _MSC_VER
#include <unistd.h>
+#endif
#include <stdint.h>
#define HT_SIZE 8192 /* 12bits = 4096 or twice as big! */