Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
msvc: Fix build by adding missing symbol defines
author
Ramsay Jones
<ramsay@ramsay1.demon.co.uk>
Thu, 31 Jan 2013 18:31:30 +0000
(18:31 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 25 Feb 2013 20:40:03 +0000
(12:40 -0800)
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>
compat/vcbuild/include/unistd.h
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
4ab7527
)
diff --git
a/compat/vcbuild/include/unistd.h
b/compat/vcbuild/include/unistd.h
index b14fcf94da405c6f3267437e59936d598168e00f..c65c2cd566b51473da12786f28074040c410f343 100644
(file)
--- a/
compat/vcbuild/include/unistd.h
+++ b/
compat/vcbuild/include/unistd.h
@@
-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