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:
@ -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
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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);
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
Reference in New Issue
Block a user