1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +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;
}
#if defined(_WIN32) && !defined(__CYGWIN__)
#if defined(_WIN32)
#define HAVE_CRYPTO
#define PLATFORM_HASH exsltCryptoCryptoApiHash

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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