diff options
author | Peter Johnson <peter@tortall.net> | 2008-05-22 08:37:32 +0000 |
---|---|---|
committer | Peter Johnson <peter@tortall.net> | 2008-05-22 08:37:32 +0000 |
commit | 811d7ad566a3e7df758c47d4f11dcf4ea82a403d (patch) | |
tree | c47dc03fe71d405ae6f0abb5d0133866315b8fe1 /libyasm | |
parent | 3d8a8f577c0c9c002a54fed7e3868d91dea03ee6 (diff) | |
download | yasm-811d7ad566a3e7df758c47d4f11dcf4ea82a403d.tar.gz |
Make util.h more robust against use without config.h by moving the
toascii redefinition to the only file that uses it, errwarn.c.
svn path=/trunk/yasm/; revision=2097
Diffstat (limited to 'libyasm')
-rw-r--r-- | libyasm/errwarn.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libyasm/errwarn.c b/libyasm/errwarn.c index 64b2f9eb..26d7f072 100644 --- a/libyasm/errwarn.c +++ b/libyasm/errwarn.c @@ -38,6 +38,10 @@ #define MSG_MAXSIZE 1024 +#if !defined(HAVE_TOASCII) || defined(lint) +# define toascii(c) ((c) & 0x7F) +#endif + /* Default handlers for replacable functions */ static /*@exits@*/ void def_internal_error_ (const char *file, unsigned int line, const char *message); |