summaryrefslogtreecommitdiff
path: root/lib/config-win32.h
Commit message (Collapse)AuthorAgeFilesLines
* config: remove `HAVE_WINSOCK_H` definitionMarcel Raad2021-09-291-5/+0
| | | | | | It's not used anymore. Closes https://github.com/curl/curl/pull/7795
* Revert "build: remove checks for WinSock 1"Daniel Stenberg2021-09-291-0/+5
| | | | | | | | Due to CI issues This reverts commit c2ea04f92b00b6271627cb218647527b5a50f2fc. Closes #7790
* build: remove checks for WinSock 1Marcel Raad2021-09-281-5/+0
| | | | | | It's not supported anymore. Closes https://github.com/curl/curl/pull/7778
* Get rid of the unused HAVE_SIG_ATOMIC_T et. al.Dan Fandrich2021-07-231-3/+0
| | | | It was added in 2006 but I see no evidence it was ever used.
* cmake: fix support for UnixSockets feature on Win32Li Xinwei2021-06-211-14/+0
| | | | | | | | | | | | | Move the definition of sockaddr_un struct from config-win32.h to curl_setup.h, so that it could be shared by all build systems. Add ADDRESS_FAMILY typedef for old mingw, now old mingw can also use unix sockets. Also fix the build of tests/server/sws.c on Win32 when USE_UNIX_SOCKETS is defined. Closes #7034
* configure/cmake: remove checks for unused gethostbyaddr and gethostbyaddr_rGergely Nagy2021-06-181-3/+0
| | | | Closes #7276
* configure/cmake: remove unused define HAVE_PERRORGergely Nagy2021-06-181-3/+0
| | | | Closes #7276
* configure/cmake: remove checks for unused sgtty.hGergely Nagy2021-06-181-3/+0
| | | | Closes #7276
* configure/cmake: remove remaining checks for err.hGergely Nagy2021-06-181-3/+0
| | | | Closes #7276
* configure/cmake: remove remaining checks for crypto.hGergely Nagy2021-06-181-3/+0
| | | | Closes #7276
* config: remove now-unused macrosMarc Aldorasi2021-05-191-21/+1
| | | | Closes #7094
* configure: remove use of RETSIGTYPEMichael Forney2021-04-071-3/+0
| | | | | | | | | | | This was previously defined by the obsolete AC_TYPE_SIGNAL macro, which was removed in 2682e5f5. The deprecation text says > Your code may safely assume C89 semantics that RETSIGTYPE is void. So, remove it and just use void instead. Closes #6861
* mingw: enable using strcasecmp()Viktor Szakats2021-02-231-1/+3
| | | | | | | | This makes the 'Features:' list sorted case-insensitively, bringing output in-line with *nix builds. Reviewed-by: Jay Satiro Closes #6644
* build: delete unused feature guardsViktor Szakats2021-02-231-9/+0
| | | | | | | | | | - `HAVE_STRNCASECMP` - `HAVE_TCGETATTR` - `HAVE_TCSETATTR` Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes #6645
* time: enable 64-bit time_t in supported mingw environmentsViktor Szakats2021-02-211-4/+9
| | | | | | | | | | | (Unless 32-bit `time_t` is selected manually via the `_USE_32BIT_TIME_T` mingw macro.) Previously, 64-bit `time_t` was enabled on VS2005 and newer only, and 32-bit `time_t` was used on all other Windows builds. Assisted-by: Jay Satiro Closes #6636
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* windows: disable Unix Sockets for old mingwViktor Szakats2020-08-031-1/+5
| | | | | | | | | | | | | | Classic mingw and 10y+ old versions of mingw-w64 don't ship with Windows headers having the typedef necessary for Unix Sockets support, so try detecting these environments to disable this feature. Ref: https://sourceforge.net/p/mingw-w64/mingw-w64/ci/cf6afc57179a5910621215f8f4037d406892072c/ Reviewed-by: Daniel Stenberg Fixes #5674 Closes #5758
* source cleanup: remove all custom typedef structsDaniel Stenberg2020-05-151-0/+1
| | | | | | | | | | | - Stick to a single unified way to use structs - Make checksrc complain on 'typedef struct {' - Allow them in tests, public headers and examples - Let MD4_CTX, MD5_CTX, and SHA256_CTX typedefs remain as they actually typedef different types/structs depending on build conditions. Closes #5338
* windows: enable UnixSockets with all build toolchainsViktor Szakats2020-04-041-5/+8
| | | | | | | | | | | Extend existing unix socket support in Windows builds to be enabled for all toolchain vendors or versions. (Previously it was only supported with certain MSVC versions + more recent Windows 10 SDKs) Ref: https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/ Ref: https://github.com/curl/curl/issues/5162 Closes: https://github.com/curl/curl/pull/5170
* config-win32: Windows does not have ftruncateMarc Hoersken2020-03-071-1/+1
|
* win32: USE_WIN32_CRYPTO to enable Win32 based MD4, MD5 and SHA256 functionsSteve Holme2020-02-201-1/+3
| | | | | | | | | Whilst lib\md4.c used this pre-processor, lib\md5.c and src\tool_metalink.c did not and simply relied on the WIN32 pre-processor directive. Reviewed-by: Marcel Raad Closes #4955
* config-win32: cpu-machine-OS for Windows on ARMMelissa Mears2019-11-141-1/+5
| | | | | | | Define the OS macro properly for Windows on ARM builds. Also, we might as well add the GCC-style IA-64 macro. Closes #4590
* url: Load if_nametoindex() dynamically from iphlpapi.dll on WindowsSteve Holme2019-05-291-10/+0
| | | | | | | | | | This fixes the static dependency on iphlpapi.lib and allows curl to build for targets prior to Windows Vista. This partially reverts 170bd047. Fixes #3960 Closes #3958
* curl-win32.h: Enable Unix Domain Sockets based on the Windows SDK versionSteve Holme2019-05-281-2/+6
| | | | | | | | | | Microsoft added support for Unix Domain Sockets in Windows 10 1803 (RS4). Rather than expect the user to enable Unix Domain Sockets by uncommenting the #define that was added in 0fd6221f we use the RS4 pre-processor variable that is present in newer versions of the Windows SDK. Closes #3939
* config-win32: add support for if_nametoindex and getsocknameZenju2019-05-231-2/+16
| | | | Closes https://github.com/curl/curl/pull/3923
* libcurl: #ifdef away more code for disabled features/protocolsDaniel Stenberg2019-05-171-1/+4
|
* config_win32: enable LDAPSMarcel Raad2018-10-191-0/+1
| | | | | | As done in the autotools and CMake builds by default. Closes https://github.com/curl/curl/pull/3137
* curl_addrinfo.c: Allow Unix Domain Sockets to compile under WindowsSteve Holme2018-02-071-1/+6
| | | | | | | | | Windows 10.0.17061 SDK introduces support for Unix Domain Sockets. Added the necessary include file to curl_addrinfo.c. Note: The SDK (which is considered beta) has to be installed, VS 2017 project file has to be re-targeted for Windows 10.0.17061 and #define enabled in config-win32.h.
* build: remove HAVE_LIMITS_H checkJay Satiro2018-01-051-3/+0
| | | | | | | | .. because limits.h presence isn't optional, it's required by C89. Ref: http://port70.net/~nsz/c/c89/c89-draft.html#2.2.4.2 Closes https://github.com/curl/curl/pull/2215
* lib/config-win32.h: let SMB/SMBS be enabled with OpenSSL/NSSViktor Szakats2017-10-061-2/+0
| | | | | | | | | | | | | | | | | The source code is now prepared to handle the case when both Win32 Crypto and OpenSSL/NSS crypto backends are enabled at the same time, making it now possible to enable `USE_WIN32_CRYPTO` whenever the targeted Windows version supports it. Since this matches the minimum Windows version supported by curl (Windows 2000), enable it unconditionally for the Win32 platform. This in turn enables SMB (and SMBS) protocol support whenever Win32 Crypto is available, regardless of what other crypto backends are enabled. Ref: https://github.com/curl/curl/pull/1840#issuecomment-325682052 Closes https://github.com/curl/curl/pull/1943
* config-win32: define SIZEOF_LONGViktor Szakats2017-08-221-0/+3
| | | | | | | | Recent changes that replaced CURL_SIZEOF_LONG in the source with SIZEOF_LONG broke builds that use the premade configuration files and don't have SIZEOF_LONG defined. Closes https://github.com/curl/curl/pull/1814
* config-win32: define SIZEOF_CURL_OFF_TDaniel Stenberg2017-08-171-0/+3
|
* spelling fixesklemens2017-03-261-4/+4
| | | | Closes #1356
* config-w32.h: Fixed compilation warning when /Wall enabledSteve Holme2016-03-191-2/+2
| | | | | warning C4668: 'USE_IPV6' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
* openssl: remove most BoringSSL #ifdefs.David Benjamin2016-02-091-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of https://boringssl-review.googlesource.com/#/c/6980/, almost all of BoringSSL #ifdefs in cURL should be unnecessary: - BoringSSL provides no-op stubs for compatibility which replaces most #ifdefs. - DES_set_odd_parity has been in BoringSSL for nearly a year now. Remove the compatibility codepath. - With a small tweak to an extend_key_56_to_64 call, the NTLM code builds fine. - Switch OCSP-related #ifdefs to the more generally useful OPENSSL_NO_OCSP. The only #ifdefs which remain are Curl_ossl_version and the #undefs to work around OpenSSL and wincrypt.h name conflicts. (BoringSSL leaves that to the consumer. The in-header workaround makes things sensitive to include order.) This change errs on the side of removing conditionals despite many of the restored codepaths being no-ops. (BoringSSL generally adds no-op compatibility stubs when possible. OPENSSL_VERSION_NUMBER #ifdefs are bad enough!) Closes #640
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* config-win32: Fix warning HAVE_WINSOCK2_H undefinedGisle Vanem2015-12-071-1/+2
|
* win32: make recent Borland compilers use long longThorsten Schöning2015-09-301-2/+3
|
* win32: Use DES_set_odd_parity() from OpenSSL/BoringSSL by defaultSteve Holme2015-08-301-0/+6
| | | | | Set HAVE_DES_SET_ODD_PARITY when using OpenSSL/BoringSSL as native Windows builds don't use the autoconf tools.
* openssl: remove all uses of USE_SSLEAYDaniel Stenberg2015-03-051-1/+1
| | | | | | | SSLeay was the name of the library that was subsequently turned into OpenSSL many moons ago (1999). curl does not work with the old SSLeay library since years. This is now reflected by only using USE_OPENSSL in code that depends on OpenSSL.
* ldap: Renamed the CURL_LDAP_WIN definition to USE_WIN32_LDAPSteve Holme2015-01-181-6/+6
| | | | | For consistency with other USE_WIN32_ defines as well as the USE_OPENLDAP define.
* config-win32.h: Fixed line length > 79 columnsSteve Holme2014-12-241-1/+2
|
* config-win32.h: Don't enable Windows Crypt API if using OpenSSLSteve Holme2014-12-121-0/+2
| | | | | | | As the OpenSSL and NSS Crypto engines are prefered by the core NTLM routines, to the Windows Crypt API, don't define USE_WIN32_CRYPT automatically when either OpenSSL or NSS are in use - doing so would disable NTLM2Session responses in NTLM type-3 messages.
* ntlm: Use Windows Crypt APIBill Nagel2014-12-071-0/+3
| | | | Allow the use of the Windows Crypt API for NTLMv1 functions.
* config-win32: Fixed build targets for the VS2012+ Windows XP toolsetSteve Holme2014-11-171-5/+18
| | | | | Even though commit 23e70e1cc6 mentioned the v110_xp toolset, I had forgotten to include the relevant pre-processor definitions.
* config-win32: Introduce build targets for VS2012+Steve Holme2014-11-161-14/+31
| | | | | | | Visual Studio 2012 introduced support for Windows Store apps as well as supporting Windows Phone 8. Introduced build targets that allow more modern APIs to be used as certain legacy ones are not available on these new platforms.
* config-win32.h: Updated for VC12Steve Holme2014-06-051-1/+17
| | | | | Bug: http://curl.haxx.se/bug/view.cgi?id=1378 Reported and Patched-by: Marcel Raad
* config-win32.h: Fixed HAVE_LONGLONG for Visual Studio .NET 2003 and upSteve Holme2014-05-041-2/+3
| | | | | Fixed the HAVE_LONGLONG declaration as long long is supported in Visual Studio .NET 2003 (VC7.1) onwards.
* win32: fix Visual Studio 2010 build with WINVER >= 0x600Daniel Stenberg2013-09-281-15/+19
| | | | | | | | | | | | | | | | If no WINVER and/or _WIN32_IWNNT define was set, the Windows platform SDK often defaults to high value, e.g. 0x601 (whoch may probably depend on the Windows version being used, in my case Windows 7). If WINVER >= 0x600 then winsock2.h includes some defines for WSAPoll(), e.g. POLLIN, POLLPRI, POLLOUT etc. These defines clash with cURL's lib/select.h. Make sure HAVE_STRUCT_POLLFD is defined then. Bug: http://curl.haxx.se/bug/view.cgi?id=1282 Reported-by: "kdekker" Patch-by: Marcel Raad
* Enabled MinGW sync resolver builds.Guenter Knauf2013-04-111-4/+3
|