Skip to contentSkip to conversation

msvc: Fix build by adding missing symbol defines

PATCH In review Ramsay Jones 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 msvc: Fix build by adding missing symbol defines

In particular, remote-testsvn.c fails to compile with two undeclared identifier errors relating to the 'UINT32_MAX' and 'STDIN_FILENO' symbols.

In order to fix the compilation errors, we add appropriate definitions for the UINT32_MAX and STDIN_FILENO constants to an msvc compat header file.

---
 compat/vcbuild/include/unistd.h | 3 +++
 1 file changed, 3 insertions(+)
compat/vcbuild/include/unistd.h +3 -0
index b14fcf9..c65c2cd 100644
@@ -49,6 +49,9 @@ typedef int64_t off64_t;
 #define INTMAX_MAX  _I64_MAX
 #define UINTMAX_MAX _UI64_MAX
 
+#define UINT32_MAX 0xffffffff  /* 4294967295U */
+
+#define STDIN_FILENO  0
 #define STDOUT_FILENO 1
 #define STDERR_FILENO 2
 
Signature · 1 line
1.8.1