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.mugica | |
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.mugica')
-rw-r--r-- | Build/source/texk/kpathsea/win32lib.h.mugica | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/win32lib.h.mugica b/Build/source/texk/kpathsea/win32lib.h.mugica new file mode 100644 index 00000000000..5578aed8770 --- /dev/null +++ b/Build/source/texk/kpathsea/win32lib.h.mugica @@ -0,0 +1,57 @@ +/* Public domain. */ + +#ifndef _WIN32LIB_H_ +#define _WIN32LIB_H_ + +#include <io.h> +#include <fcntl.h> +#include <direct.h> + +#if !__STDC__ +#if _MSC_VER>=1200 + #pragma warning(push) +#endif +#pragma warning(disable: 4668) +#pragma warning(disable: 4255) + +#define boolean donotuse_boolean +#include <windows.h> /* Somewhere here WIN32 gets defined */ +#undef boolean + +#if _MSC_VER>=1200 + #pragma warning(pop) +#else + #pragma warning(default: 4668) + #pragma warning(default: 4255) +#endif + +#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 + +#endif /*__STDC__*/ + +/*This is not defined even if !__STDC__*/ +#define snprintf _snprintf + +/* The POSIX names are different */ +#define strcasecmp _stricmp +#define strncasecmp _strnicmp + +#endif |