Code

msvc: Fix build by adding missing INTMAX_MAX define
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Sat, 4 Dec 2010 18:57:30 +0000 (18:57 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Dec 2010 00:00:30 +0000 (16:00 -0800)
commit1a3b5a3e5cfc00ca36bdbc07b3ffebcdfc9dd989
treedd1f0f0401aab481f2e5f1d0c0ee43c8720b3d47
parentb7037b6a1f463ffe33390f26840d6cc1600dbb18
msvc: Fix build by adding missing INTMAX_MAX define

Commit c03c831 (do not depend on signed integer overflow,
05-10-2010) provokes an msvc build failure. The cause of the
failure is a missing definition of the INTMAX_MAX constant,
used in the new maximum_signed_value_of_type(a) macro, which
would normally be defined in the C99 <stdint.h> header file.

In order the fix the compilation error, we add an appropriate
definition of the INTMAX_MAX constant, along with INTMAX_MIN
and UINTMAX_MAX, to an msvc compat header file.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Acked-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/vcbuild/include/unistd.h