mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
'Fix' windows builds
This commit is contained in:
parent
d6ffb4c177
commit
e105d5c28f
7 changed files with 106 additions and 16 deletions
|
|
@ -23,6 +23,18 @@
|
|||
/* Define if you have the <fcntl.h> header file. */
|
||||
#define HAVE_FCNTL_H 1
|
||||
|
||||
/* Define if you have the <windows.h> header file. */
|
||||
#define HAVE_WINDOWS_H 1
|
||||
|
||||
/* Define if you have the <winsock.h> header file. */
|
||||
#define HAVE_WINSOCK_H 1
|
||||
|
||||
/* Define if you have the <winsock2.h> header file. */
|
||||
#define HAVE_WINSOCK2_H 1
|
||||
|
||||
/* Define if you have the <ws2tcpip.h> header file. */
|
||||
#define HAVE_WS2TCPIP_H 1
|
||||
|
||||
/* Define if you have utime() */
|
||||
#if !defined(__BORLANDC__)
|
||||
#define HAVE_UTIME 1
|
||||
|
|
|
|||
28
src/setup.h
28
src/setup.h
|
|
@ -60,6 +60,34 @@
|
|||
#include "../lib/setup.h"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Include header files for windows builds before redefining anything.
|
||||
* Use this preproessor block only to include or exclude windows.h,
|
||||
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs
|
||||
* to any other further and independant block.
|
||||
*/
|
||||
|
||||
#ifdef WIN32
|
||||
# ifdef HAVE_WINDOWS_H
|
||||
# ifndef WIN32_LEAN_AND_MEAN
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# endif
|
||||
# include <windows.h>
|
||||
# ifdef HAVE_WINSOCK2_H
|
||||
# include <winsock2.h>
|
||||
# ifdef HAVE_WS2TCPIP_H
|
||||
# include <ws2tcpip.h>
|
||||
# endif
|
||||
# else
|
||||
# ifdef HAVE_WINSOCK_H
|
||||
# include <winsock.h>
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef __TANDEM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue