diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-04-17 07:56:24 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-04-17 07:56:24 +0000 |
commit | 965b84f24f1e0a0a7f19408269afb6f270ed2b4d (patch) | |
tree | ab86466b7a6466b0a5fd46ad00b585b44b388763 /Build/source/texk/kpathsea/c-ctype.h | |
parent | f49d393d23cd0ec870e76a42b3feecb4534fd428 (diff) |
texk/kpathsea: Fix definition of isascii()
git-svn-id: svn://tug.org/texlive/trunk@36887 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/c-ctype.h')
-rw-r--r-- | Build/source/texk/kpathsea/c-ctype.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/c-ctype.h b/Build/source/texk/kpathsea/c-ctype.h index 72fbf370a8f..5e453e08fbb 100644 --- a/Build/source/texk/kpathsea/c-ctype.h +++ b/Build/source/texk/kpathsea/c-ctype.h @@ -1,6 +1,6 @@ /* c-ctype.h: ASCII-safe versions of the <ctype.h> macros. - Copyright 1992, 1994, 2008, 2010, 2011 Karl Berry. + Copyright 1992, 1994, 2008, 2010, 2011, 2015 Karl Berry. Copyright 1998, 2000, 2005 Olaf Weber. This library is free software; you can redistribute it and/or @@ -21,10 +21,10 @@ #include <ctype.h> -/* Be sure we have `isascii', even if wrong. */ +/* Be sure we have `isascii'. */ #ifndef WIN32 -#ifndef isascii -#define isascii(c) 1 +#if !(defined(HAVE_DECL_ISASCII) && HAVE_DECL_ISASCII) +#define isascii(c) (((c) & ~0x7f) == 0) #endif #endif |