Skip to content

Commit 6a47205

Browse files
committed
Added a proxy unistd.h for various packages that expect it on Windows
1 parent 871bf21 commit 6a47205

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

binding.gyp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
'include_dirs': [
6565
'<(GTK_Root)/include',
6666
'<(GTK_Root)/include/cairo',
67+
'src/unistd' # needed for Freetype, GifLib, and Pango
6768
],
6869
'defines': [
6970
'snprintf=_snprintf',

src/unistd/unistd.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* This is needed on Windows (MSVC) for Freetype, Pango, and GifLib to pass compilation */
2+
#include <stdint.h>

0 commit comments

Comments
 (0)