summaryrefslogtreecommitdiff
path: root/compat/msvc.h
diff options
context:
space:
mode:
authorVincent van Ravesteijn <vfr@lyx.org>2011-10-31 19:12:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-11-01 03:05:57 (GMT)
commitcfc755d30e2f9d92f19af10ba2d810281aa94c99 (patch)
tree4c54bde67ed747def58a3532ab3ceea031bbb473 /compat/msvc.h
parentbe3fa9125e708348c7baf04ebe9507a72a9d1800 (diff)
downloadgit-cfc755d30e2f9d92f19af10ba2d810281aa94c99.zip
git-cfc755d30e2f9d92f19af10ba2d810281aa94c99.tar.gz
git-cfc755d30e2f9d92f19af10ba2d810281aa94c99.tar.bz2
Compile fix for MSVC: Do not include sys/resources.h
Do not include header files when compiling with MSVC that do not exist and which are also not included when compiling with MINGW. A direct consequence is that git can be compiled again with MSVC because the missing "sys/resources.h" is no longer included. Instead of current #ifndef mingw32 is the only one that is strange ... everything for systems that is not strange ... #else ... include mingw specific tweaks ... #endif #ifdef msvc is also strange ... include msvc specific tweaks ... #endif it turns things around and says what it wants to achieve in a more direct way, i.e. #if mingw32 #include "compat/mingw.h" #elif msvc #include "compat/msvc.h" #else ... all the others ... #endif which makes it a lot simpler. Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org> Helped-by: Junio C Hamano <gitster@pobox.com> Acked-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/msvc.h')
0 files changed, 0 insertions, 0 deletions