]> granicus.if.org Git - yasm/commitdiff
Make util.h more robust against use without config.h by moving the
authorPeter Johnson <peter@tortall.net>
Thu, 22 May 2008 08:37:32 +0000 (08:37 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 22 May 2008 08:37:32 +0000 (08:37 -0000)
toascii redefinition to the only file that uses it, errwarn.c.

svn path=/trunk/yasm/; revision=2097

libyasm/errwarn.c
util.h

index 64b2f9eb70ed102939061eb669fa40c475b0e3f2..26d7f072300954e2c8f70efad74836a8540c3228 100644 (file)
 
 #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 f19792e8240cd6ef8757a5c38c4766357884798f..f1886a2305f0ebd23ae38893d2c0709dd2c67f21 100644 (file)
--- a/util.h
+++ b/util.h
 # define USE_OUR_OWN_STRCASECMP
 #endif
 
-#if !defined(HAVE_TOASCII) || defined(lint)
-# define toascii(c) ((c) & 0x7F)
-#endif
-
 #include <libyasm/compat-queue.h>
 
 #ifdef HAVE_SYS_CDEFS_H