vcpkg/ports/giflib/msvc-guard-unistd-h.patch

15 lines
326 B
Diff
Raw Normal View History

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
2017-04-27 23:00:00 +08:00
#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! */