From: Peter Johnson Date: Sun, 19 Aug 2001 07:32:39 +0000 (-0000) Subject: Add RCSID() function. X-Git-Tag: v0.1.0~362 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bcd62360919a2835ab1a732907aaf3087e4b2341;p=yasm Add RCSID() function. Indent some of the preprocessor directives a bit nicer. svn path=/trunk/yasm/; revision=149 --- diff --git a/libyasm/util.h b/libyasm/util.h index 5a881c65..2d91d1b3 100644 --- a/libyasm/util.h +++ b/libyasm/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.5 2001/08/19 04:32:02 peter Exp $ +/* $Id: util.h,v 1.6 2001/08/19 07:32:39 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -35,9 +35,19 @@ unsigned long strtoul(const char *nptr, char **endptr, int base); #endif #if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) -#include +# include #else -#include "compat-queue.h" +# include "compat-queue.h" +#endif + +#ifdef HAVE_SYS_CDEFS_H +# include +#endif + +#ifdef __RCSID +# define RCSID(s) __RCSID(s) +#else +# define RCSID(s) static const char rcsid[] = s; #endif #endif diff --git a/src/util.h b/src/util.h index 5a881c65..2d91d1b3 100644 --- a/src/util.h +++ b/src/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.5 2001/08/19 04:32:02 peter Exp $ +/* $Id: util.h,v 1.6 2001/08/19 07:32:39 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -35,9 +35,19 @@ unsigned long strtoul(const char *nptr, char **endptr, int base); #endif #if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) -#include +# include #else -#include "compat-queue.h" +# include "compat-queue.h" +#endif + +#ifdef HAVE_SYS_CDEFS_H +# include +#endif + +#ifdef __RCSID +# define RCSID(s) __RCSID(s) +#else +# define RCSID(s) static const char rcsid[] = s; #endif #endif diff --git a/util.h b/util.h index 5a881c65..2d91d1b3 100644 --- a/util.h +++ b/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.5 2001/08/19 04:32:02 peter Exp $ +/* $Id: util.h,v 1.6 2001/08/19 07:32:39 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -35,9 +35,19 @@ unsigned long strtoul(const char *nptr, char **endptr, int base); #endif #if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) -#include +# include #else -#include "compat-queue.h" +# include "compat-queue.h" +#endif + +#ifdef HAVE_SYS_CDEFS_H +# include +#endif + +#ifdef __RCSID +# define RCSID(s) __RCSID(s) +#else +# define RCSID(s) static const char rcsid[] = s; #endif #endif