diff --git a/include/util.h b/include/util.h index 448e7c14..dd5392a5 100644 --- a/include/util.h +++ b/include/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.3 2001/06/28 21:22:01 peter Exp $ +/* $Id: util.h,v 1.4 2001/06/29 02:11:36 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -26,4 +26,12 @@ char *strdup(const char *str); #endif +#ifndef HAVE_STRTOUL +unsigned long strtoul(const char *nptr, char **endptr, int base); +#endif + +#ifndef HAVE_TOASCII +# define toascii(c) ((c) & 0x7F) +#endif + #endif diff --git a/libyasm/util.h b/libyasm/util.h index 448e7c14..dd5392a5 100644 --- a/libyasm/util.h +++ b/libyasm/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.3 2001/06/28 21:22:01 peter Exp $ +/* $Id: util.h,v 1.4 2001/06/29 02:11:36 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -26,4 +26,12 @@ char *strdup(const char *str); #endif +#ifndef HAVE_STRTOUL +unsigned long strtoul(const char *nptr, char **endptr, int base); +#endif + +#ifndef HAVE_TOASCII +# define toascii(c) ((c) & 0x7F) +#endif + #endif diff --git a/src/util.h b/src/util.h index 448e7c14..dd5392a5 100644 --- a/src/util.h +++ b/src/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.3 2001/06/28 21:22:01 peter Exp $ +/* $Id: util.h,v 1.4 2001/06/29 02:11:36 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -26,4 +26,12 @@ char *strdup(const char *str); #endif +#ifndef HAVE_STRTOUL +unsigned long strtoul(const char *nptr, char **endptr, int base); +#endif + +#ifndef HAVE_TOASCII +# define toascii(c) ((c) & 0x7F) +#endif + #endif diff --git a/util.h b/util.h index 448e7c14..dd5392a5 100644 --- a/util.h +++ b/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.3 2001/06/28 21:22:01 peter Exp $ +/* $Id: util.h,v 1.4 2001/06/29 02:11:36 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -26,4 +26,12 @@ char *strdup(const char *str); #endif +#ifndef HAVE_STRTOUL +unsigned long strtoul(const char *nptr, char **endptr, int base); +#endif + +#ifndef HAVE_TOASCII +# define toascii(c) ((c) & 0x7F) +#endif + #endif