From: Peter Johnson Date: Thu, 22 May 2008 08:37:32 +0000 (-0000) Subject: Make util.h more robust against use without config.h by moving the X-Git-Tag: v0.7.2~7^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=811d7ad566a3e7df758c47d4f11dcf4ea82a403d;p=yasm 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 --- 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); diff --git a/util.h b/util.h index f19792e8..f1886a23 100644 --- a/util.h +++ b/util.h @@ -116,10 +116,6 @@ # define USE_OUR_OWN_STRCASECMP #endif -#if !defined(HAVE_TOASCII) || defined(lint) -# define toascii(c) ((c) & 0x7F) -#endif - #include #ifdef HAVE_SYS_CDEFS_H