Skip to content

Commit 93e38ed

Browse files
Ramsay Jonesgitster
authored andcommitted
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. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Tested-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4ab7527 commit 93e38ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compat/vcbuild/include/unistd.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ typedef int64_t off64_t;
4949
#define INTMAX_MAX _I64_MAX
5050
#define UINTMAX_MAX _UI64_MAX
5151

52+
#define UINT32_MAX 0xffffffff /* 4294967295U */
53+
54+
#define STDIN_FILENO 0
5255
#define STDOUT_FILENO 1
5356
#define STDERR_FILENO 2
5457

0 commit comments

Comments
 (0)