Skip to content

Commit

Permalink
- MFB: fix logic, build correctly when the build targets xp/2k
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrejoye committed Aug 23, 2008
1 parent f7c2787 commit 1c4e7be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion win32/inet.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if _MSC_VER < 1500
#include "config.w32.h"
#if (_WIN32_WINNT < 0x0600) /* Vita/2k8 have these functions */
#include "php.h"
#include <winsock2.h>
#include <windows.h>
Expand Down
3 changes: 1 addition & 2 deletions win32/inet.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# include <In6addr.h>
#endif
#include <Ws2tcpip.h>

#if _MSC_VER < 1500
#if (_WIN32_WINNT < 0x0600) /* Vita/2k8 have these functions */
PHPAPI int inet_pton(int af, const char* src, void* dst);
PHPAPI const char* inet_ntop(int af, const void* src, char* dst, size_t size);
PHPAPI int inet_aton(const char *cp, struct in_addr *inp);
Expand Down

0 comments on commit 1c4e7be

Please sign in to comment.