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:
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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);
|
||||
|
@ -32,7 +32,7 @@
|
||||
typedef locale_t xsltLocale;
|
||||
typedef xmlChar xsltLocaleChar;
|
||||
|
||||
#elif defined(_WIN32) && !defined(__CYGWIN__)
|
||||
#elif defined(_WIN32)
|
||||
|
||||
/*
|
||||
* XSLT_LOCALE_WINAPI:
|
||||
|
@ -41,7 +41,7 @@
|
||||
#include "imports.h"
|
||||
#include "transform.h"
|
||||
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
#if defined(_WIN32)
|
||||
#define XSLT_WIN32_PERFORMANCE_COUNTER
|
||||
#endif
|
||||
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user