1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-01 14:06:55 +03:00

Remove useless __CYGWIN__ checks

This commit is contained in:
Nick Wellnhofer
2022-03-31 01:55:29 +02:00
parent 9c88a72e52
commit 74e87f96aa
7 changed files with 9 additions and 9 deletions

View File

@ -102,7 +102,7 @@ exsltCryptoHex2Bin (const unsigned char *hex, int hexlen,
return j; return j;
} }
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32)
#define HAVE_CRYPTO #define HAVE_CRYPTO
#define PLATFORM_HASH exsltCryptoCryptoApiHash #define PLATFORM_HASH exsltCryptoCryptoApiHash

View File

@ -9,7 +9,7 @@
#ifndef __XSLT_LIBEXSLT_H__ #ifndef __XSLT_LIBEXSLT_H__
#define __XSLT_LIBEXSLT_H__ #define __XSLT_LIBEXSLT_H__
#if defined(_WIN32) && !defined (__CYGWIN__) && !defined (__MINGW32__) #if defined(_WIN32) && !defined (__MINGW32__)
#include <win32config.h> #include <win32config.h>
#else #else
#include "config.h" #include "config.h"

View File

@ -10,7 +10,7 @@
#ifndef __XSLT_LIBXSLT_H__ #ifndef __XSLT_LIBXSLT_H__
#define __XSLT_LIBXSLT_H__ #define __XSLT_LIBXSLT_H__
#if defined(_WIN32) && !defined (__CYGWIN__) && !defined (__MINGW32__) #if defined(_WIN32) && !defined (__MINGW32__)
#include <win32config.h> #include <win32config.h>
#else #else
#include "config.h" #include "config.h"

View File

@ -18,7 +18,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#endif #endif
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32)
#include <windows.h> #include <windows.h>
#ifndef INVALID_FILE_ATTRIBUTES #ifndef INVALID_FILE_ATTRIBUTES
#define INVALID_FILE_ATTRIBUTES ((DWORD)-1) #define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
@ -263,7 +263,7 @@ xsltCheckFilename (const char *path)
{ {
#ifdef HAVE_STAT #ifdef HAVE_STAT
struct stat stat_buffer; struct stat stat_buffer;
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32)
DWORD dwAttrs; DWORD dwAttrs;
dwAttrs = GetFileAttributesA(path); dwAttrs = GetFileAttributesA(path);
@ -368,7 +368,7 @@ xsltCheckWrite(xsltSecurityPrefsPtr sec,
if ((uri->scheme == NULL) || if ((uri->scheme == NULL) ||
(xmlStrEqual(BAD_CAST uri->scheme, BAD_CAST "file"))) { (xmlStrEqual(BAD_CAST uri->scheme, BAD_CAST "file"))) {
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32)
if ((uri->path)&&(uri->path[0]=='/')&& if ((uri->path)&&(uri->path[0]=='/')&&
(uri->path[1]!='\0')&&(uri->path[2]==':')) (uri->path[1]!='\0')&&(uri->path[2]==':'))
ret = xsltCheckWritePath(sec, ctxt, uri->path+1); ret = xsltCheckWritePath(sec, ctxt, uri->path+1);

View File

@ -32,7 +32,7 @@
typedef locale_t xsltLocale; typedef locale_t xsltLocale;
typedef xmlChar xsltLocaleChar; typedef xmlChar xsltLocaleChar;
#elif defined(_WIN32) && !defined(__CYGWIN__) #elif defined(_WIN32)
/* /*
* XSLT_LOCALE_WINAPI: * XSLT_LOCALE_WINAPI:

View File

@ -41,7 +41,7 @@
#include "imports.h" #include "imports.h"
#include "transform.h" #include "transform.h"
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32)
#define XSLT_WIN32_PERFORMANCE_COUNTER #define XSLT_WIN32_PERFORMANCE_COUNTER
#endif #endif

View File

@ -25,7 +25,7 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32)
#include <fcntl.h> #include <fcntl.h>
#endif #endif
#include <libxml/xmlmemory.h> #include <libxml/xmlmemory.h>