diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-07-26 10:20:07 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-07-26 10:20:07 +0000 |
commit | 8d4af963a232f6c2cdbf510179c05af4140d3264 (patch) | |
tree | 919ffa0fb8d422560c77a04760bb2001729e9070 /Build/source/texk/kpathsea/config.h | |
parent | b682bb00112f1062d00240543c0a0038413d148a (diff) |
kpathsea: More changes to reduce diffs with W32TeX
git-svn-id: svn://tug.org/texlive/trunk@23230 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/config.h')
-rw-r--r-- | Build/source/texk/kpathsea/config.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/config.h b/Build/source/texk/kpathsea/config.h index 515bd97f644..eef952d7113 100644 --- a/Build/source/texk/kpathsea/config.h +++ b/Build/source/texk/kpathsea/config.h @@ -1,7 +1,7 @@ /* config.h: master configuration file, included first by all compilable source files (not headers). - Copyright 1993, 1995, 1996, 1997, 2008, 2010 Karl Berry. + Copyright 1993, 1995, 1996, 1997, 2008, 2010, 2011 Karl Berry. Copyright 2000, 2003, 2004, 2005 Olaf Weber. This library is free software; you can redistribute it and/or @@ -95,6 +95,7 @@ but before "lib.h". FP. */ #if defined (WIN32) || defined (_WIN32) +#include <kpathsea/knj.h> #ifdef __MINGW32__ #include <kpathsea/mingw32.h> #else @@ -102,6 +103,18 @@ #endif #endif +/* Transform filename characters for use in hash tables. */ +#if defined(MONOCASE_FILENAMES) +#if defined(WIN32) && !defined(__i386_pc_gnu__) +/* This is way faster under Win32. */ +#define TRANSFORM(x) ((unsigned)CharLower((LPTSTR)(BYTE)(x))) +#else +#define TRANSFORM(x) (tolower(x)) +#endif +#else +#define TRANSFORM(x) (x) +#endif + #include <kpathsea/debug.h> /* Runtime tracing. */ #include <kpathsea/lib.h> /* STREQ, etc. */ #include <kpathsea/types.h> /* <sys/types.h>, boolean, string, etc. */ |