diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-08-01 14:28:58 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-08-01 14:28:58 +0000 |
commit | 08cfcfc786b9886a03b8ebbf790716d724d41014 (patch) | |
tree | d3e4b19986fc38ffd9a4fd98a82137276f4bf859 /Build/source/texk/kpathsea/win32lib.h | |
parent | dced0f61f3eb8e164594fafc628ac7d8f97eacaf (diff) |
kpathsea: win32 update
git-svn-id: svn://tug.org/texlive/trunk@23302 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/win32lib.h')
-rw-r--r-- | Build/source/texk/kpathsea/win32lib.h | 69 |
1 files changed, 19 insertions, 50 deletions
diff --git a/Build/source/texk/kpathsea/win32lib.h b/Build/source/texk/kpathsea/win32lib.h index 5578aed8770..ed2e1ffe579 100644 --- a/Build/source/texk/kpathsea/win32lib.h +++ b/Build/source/texk/kpathsea/win32lib.h @@ -1,57 +1,26 @@ -/* Public domain. */ +/* win32lib.h: bits and pieces for win32 and msvc. -#ifndef _WIN32LIB_H_ -#define _WIN32LIB_H_ + Copyright 1996, xxxx Fabrice Popineau. + Copyright xxxx, 2011 Akira Kakuto. -#include <io.h> -#include <fcntl.h> -#include <direct.h> + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. -#if !__STDC__ -#if _MSC_VER>=1200 - #pragma warning(push) -#endif -#pragma warning(disable: 4668) -#pragma warning(disable: 4255) + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. -#define boolean donotuse_boolean -#include <windows.h> /* Somewhere here WIN32 gets defined */ -#undef boolean + You should have received a copy of the GNU Lesser General Public License + along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#if _MSC_VER>=1200 - #pragma warning(pop) -#else - #pragma warning(default: 4668) - #pragma warning(default: 4255) -#endif +#ifndef KPATHSEA_WIN32LIBH +#define KPATHSEA_WIN32LIBH -#else /*__STDC__*/ -/* non-ansi definitions for an ANSI compliation with /Fa */ -#define WIN32 -#define off_t _off_t -#define putenv _putenv -#define getcwd _getcwd -#define getcw _getcw -#define putenv _putenv -#define strdup _strdup -#define vsnprintf _vsnprintf -#define fileno _fileno -#define strlwr _strlwr -#define isascii __isascii -#define mkdir _mkdir -#define stat _stat -#define stricmp _stricmp -#define MAX_PATH _MAX_PATH -#define S_IFREG _S_IFREG -#define S_IFMT _S_IFMT +/* + * To be filled in + */ -#endif /*__STDC__*/ - -/*This is not defined even if !__STDC__*/ -#define snprintf _snprintf - -/* The POSIX names are different */ -#define strcasecmp _stricmp -#define strncasecmp _strnicmp - -#endif +#endif /* not KPATHSEA_WIN32LIBH */ |