mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Simplified #ifdef on WIN32; the statement
" !defined(__GNUC__) || defined(__MINGW32__)" implies CygWin.
This commit is contained in:
parent
6728bda5c5
commit
4f4277d9c7
@ -38,7 +38,7 @@
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
#include <time.h>
|
||||
#include <io.h>
|
||||
#else
|
||||
|
@ -40,7 +40,7 @@
|
||||
|
||||
#include "strequal.h"
|
||||
|
||||
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
#include <time.h>
|
||||
#include <io.h>
|
||||
#else
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
#include <time.h>
|
||||
#include <io.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
|
||||
#else /* probably some kind of unix */
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
#include <time.h>
|
||||
#include <io.h>
|
||||
#else
|
||||
|
@ -218,7 +218,7 @@ typedef unsigned char bool;
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#if !defined(__GNUC__) || defined(__MINGW32__)
|
||||
#if !defined(__CYGWIN__)
|
||||
#define sclose(x) closesocket(x)
|
||||
|
||||
#undef HAVE_ALARM
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
#include "setup.h"
|
||||
|
||||
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
#include <time.h>
|
||||
#else
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
|
@ -41,7 +41,7 @@
|
||||
#include "strtoofft.h"
|
||||
#include "strequal.h"
|
||||
|
||||
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
#include <time.h>
|
||||
#include <io.h>
|
||||
#else
|
||||
|
@ -38,7 +38,7 @@
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
#include <time.h>
|
||||
#include <io.h>
|
||||
#else
|
||||
@ -78,8 +78,8 @@
|
||||
#ifndef HAVE_SOCKET
|
||||
#error "We can't compile without socket() support!"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef USE_LIBIDN
|
||||
#include <idna.h>
|
||||
#include <tld.h>
|
||||
@ -95,7 +95,7 @@ void idn_free (void *ptr); /* prototype from idn-free.h, not provided by
|
||||
instead */
|
||||
#define idn_free(x) (free)(x)
|
||||
#endif
|
||||
#endif
|
||||
#endif /* USE_LIBIDN */
|
||||
|
||||
#include "urldata.h"
|
||||
#include "netrc.h"
|
||||
|
Loading…
Reference in New Issue
Block a user