Commit 339950a7 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Don't define _WIN32 for Cygwin builds.

parent cbf94a7b
...@@ -5675,7 +5675,6 @@ case $host in ...@@ -5675,7 +5675,6 @@ case $host in
*-mingw32*|*-cygwin*) *-mingw32*|*-cygwin*)
enable_win16=${enable_win16:-no} enable_win16=${enable_win16:-no}
with_mingw=${with_mingw:-no} with_mingw=${with_mingw:-no}
CFLAGS="$CFLAGS -D_WIN32"
;; ;;
esac esac
......
...@@ -136,7 +136,6 @@ case $host in ...@@ -136,7 +136,6 @@ case $host in
*-mingw32*|*-cygwin*) *-mingw32*|*-cygwin*)
enable_win16=${enable_win16:-no} enable_win16=${enable_win16:-no}
with_mingw=${with_mingw:-no} with_mingw=${with_mingw:-no}
CFLAGS="$CFLAGS -D_WIN32"
;; ;;
esac esac
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
# else # else
# define __stdcall __attribute__((ms_abi)) # define __stdcall __attribute__((ms_abi))
# endif # endif
# elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__) && !defined(_WIN32) # elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__) && !defined(__MINGW32__) && !defined(__CYGWIN__)
# define __stdcall __attribute__((pcs("aapcs-vfp"))) # define __stdcall __attribute__((pcs("aapcs-vfp")))
# elif defined(__aarch64__) && defined (__GNUC__) && __has_attribute(ms_abi) # elif defined(__aarch64__) && defined (__GNUC__) && __has_attribute(ms_abi)
# define __stdcall __attribute__((ms_abi)) # define __stdcall __attribute__((ms_abi))
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
#endif #endif
#ifndef WINAPIV #ifndef WINAPIV
# if defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__) && !defined(_WIN32) # if defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__) && !defined(__MINGW32__) && !defined(__CYGWIN__)
# define WINAPIV __attribute__((pcs("aapcs"))) # define WINAPIV __attribute__((pcs("aapcs")))
# else # else
# define WINAPIV __cdecl # define WINAPIV __cdecl
......
...@@ -72,7 +72,7 @@ extern "C" { ...@@ -72,7 +72,7 @@ extern "C" {
# else # else
# define __stdcall __attribute__((ms_abi)) # define __stdcall __attribute__((ms_abi))
# endif # endif
# elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__) && !defined(_WIN32) # elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__) && !defined(__MINGW32__) && !defined(__CYGWIN__)
# define __stdcall __attribute__((pcs("aapcs-vfp"))) # define __stdcall __attribute__((pcs("aapcs-vfp")))
# elif defined(__aarch64__) && defined (__GNUC__) && __has_attribute(ms_abi) # elif defined(__aarch64__) && defined (__GNUC__) && __has_attribute(ms_abi)
# define __stdcall __attribute__((ms_abi)) # define __stdcall __attribute__((ms_abi))
...@@ -120,7 +120,7 @@ extern "C" { ...@@ -120,7 +120,7 @@ extern "C" {
# endif # endif
#endif #endif
#if defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__) && !defined(_WIN32) #if defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__) && !defined(__MINGW32__) && !defined(__CYGWIN__)
# define WINAPIV __attribute__((pcs("aapcs"))) # define WINAPIV __attribute__((pcs("aapcs")))
#else #else
# define WINAPIV __cdecl # define WINAPIV __cdecl
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
* Hard-coded values for the Windows platform * Hard-coded values for the Windows platform
*/ */
#if defined(_WIN32) && !defined(__CYGWIN__) #ifdef _WIN32
#include <errno.h> #include <errno.h>
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#if defined(_WIN32) && !defined(__CYGWIN__) #ifdef _WIN32
# include <direct.h> # include <direct.h>
# include <io.h> # include <io.h>
# include <process.h> # include <process.h>
...@@ -201,7 +201,7 @@ static inline struct strarray strarray_fromstring( const char *str, const char * ...@@ -201,7 +201,7 @@ static inline struct strarray strarray_fromstring( const char *str, const char *
static inline struct strarray strarray_frompath( const char *path ) static inline struct strarray strarray_frompath( const char *path )
{ {
if (!path) return empty_strarray; if (!path) return empty_strarray;
#if defined(_WIN32) && !defined(__CYGWIN__) #ifdef _WIN32
return strarray_fromstring( path, ";" ); return strarray_fromstring( path, ";" );
#else #else
return strarray_fromstring( path, ":" ); return strarray_fromstring( path, ":" );
...@@ -253,7 +253,7 @@ static inline void strarray_trace( struct strarray args ) ...@@ -253,7 +253,7 @@ static inline void strarray_trace( struct strarray args )
static inline int strarray_spawn( struct strarray args ) static inline int strarray_spawn( struct strarray args )
{ {
#if defined(_WIN32) && !defined(__CYGWIN__) #ifdef _WIN32
strarray_add( &args, NULL ); strarray_add( &args, NULL );
return _spawnvp( _P_WAIT, args.str[0], args.str ); return _spawnvp( _P_WAIT, args.str[0], args.str );
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment