Skip to content

Commit

Permalink
Merge branch 'vr/msvc'
Browse files Browse the repository at this point in the history
* vr/msvc:
  MSVC: Remove unneeded header stubs
  Compile fix for MSVC: Include <io.h>
  Compile fix for MSVC: Do not include sys/resources.h
  • Loading branch information
Junio C Hamano committed Dec 5, 2011
2 parents 5d6c53b + 439fbb8 commit cd17abd
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 19 deletions.
1 change: 1 addition & 0 deletions compat/msvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <direct.h>
#include <process.h>
#include <malloc.h>
#include <io.h>

/* porting function */
#define inline __inline
Expand Down
1 change: 0 additions & 1 deletion compat/vcbuild/include/arpa/inet.h

This file was deleted.

1 change: 0 additions & 1 deletion compat/vcbuild/include/grp.h

This file was deleted.

1 change: 0 additions & 1 deletion compat/vcbuild/include/inttypes.h

This file was deleted.

1 change: 0 additions & 1 deletion compat/vcbuild/include/netdb.h

This file was deleted.

1 change: 0 additions & 1 deletion compat/vcbuild/include/netinet/in.h

This file was deleted.

1 change: 0 additions & 1 deletion compat/vcbuild/include/netinet/tcp.h

This file was deleted.

1 change: 0 additions & 1 deletion compat/vcbuild/include/pwd.h

This file was deleted.

1 change: 0 additions & 1 deletion compat/vcbuild/include/sys/ioctl.h

This file was deleted.

1 change: 0 additions & 1 deletion compat/vcbuild/include/sys/select.h

This file was deleted.

1 change: 0 additions & 1 deletion compat/vcbuild/include/sys/socket.h

This file was deleted.

1 change: 0 additions & 1 deletion compat/vcbuild/include/sys/wait.h

This file was deleted.

1 change: 0 additions & 1 deletion compat/vcbuild/include/termios.h

This file was deleted.

13 changes: 6 additions & 7 deletions git-compat-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,12 @@
#else
#include <poll.h>
#endif
#ifndef __MINGW32__
#if defined(__MINGW32__)
/* pull in Windows compatibility stuff */
#include "compat/mingw.h"
#elif defined(_MSC_VER)
#include "compat/msvc.h"
#else
#include <sys/wait.h>
#include <sys/resource.h>
#include <sys/socket.h>
Expand Down Expand Up @@ -145,12 +150,6 @@
#include <grp.h>
#define _ALL_SOURCE 1
#endif
#else /* __MINGW32__ */
/* pull in Windows compatibility stuff */
#include "compat/mingw.h"
#endif /* __MINGW32__ */
#ifdef _MSC_VER
#include "compat/msvc.h"
#endif

#ifndef NO_LIBGEN_H
Expand Down

0 comments on commit cd17abd

Please sign in to comment.