Add compatibility to MS Visual C
commit12082b01c280150e5906140ccd804a75efc459b0
authorBruno Santos <nayart3@gmail.com>
Wed, 12 Nov 2008 22:34:49 +0000 (12 22:34 +0000)
committerBruno Santos <nayart3@gmail.com>
Wed, 12 Nov 2008 22:34:49 +0000 (12 22:34 +0000)
tree88fd640bdae3688aaff956e33982124ba3ac5592
parent7c181d627c136cbc67ef0f722e74e34017e662f0
Add compatibility to MS Visual C

Add support for the MS Visual C compiler in 'git-compat-util.h' for
FLEX_ARRAY and NORETURN. Include the new header 'compat/msvc.h' that
provides configuration suport for building with the MS Visual C (with
some help of an external library for posix compatiblity).

Implemented the configuration helpers in compat/msvc.c, this configuration
helpers are need because we should not use hardcoded paths in Windows.

Signed-off-by: Bruno Santos <nayart3@gmail.com>
compat/msvc.c [new file with mode: 0644]
compat/msvc.h [new file with mode: 0644]
git-compat-util.h