]> granicus.if.org Git - yasm/commitdiff
Add RCSID() function.
authorPeter Johnson <peter@tortall.net>
Sun, 19 Aug 2001 07:32:39 +0000 (07:32 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 19 Aug 2001 07:32:39 +0000 (07:32 -0000)
Indent some of the preprocessor directives a bit nicer.

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

libyasm/util.h
src/util.h
util.h

index 5a881c65c71781d8ed0c3396efceaf8dd20a35ee..2d91d1b3dfe5492b82ce211963a2c28ef00ea960 100644 (file)
@@ -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 <sys/queue.h>
+# include <sys/queue.h>
 #else
-#include "compat-queue.h"
+# include "compat-queue.h"
+#endif
+
+#ifdef HAVE_SYS_CDEFS_H
+# include <sys/cdefs.h>
+#endif
+
+#ifdef __RCSID
+# define RCSID(s)      __RCSID(s)
+#else
+# define RCSID(s)      static const char rcsid[] = s;
 #endif
 
 #endif
index 5a881c65c71781d8ed0c3396efceaf8dd20a35ee..2d91d1b3dfe5492b82ce211963a2c28ef00ea960 100644 (file)
@@ -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 <sys/queue.h>
+# include <sys/queue.h>
 #else
-#include "compat-queue.h"
+# include "compat-queue.h"
+#endif
+
+#ifdef HAVE_SYS_CDEFS_H
+# include <sys/cdefs.h>
+#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 5a881c65c71781d8ed0c3396efceaf8dd20a35ee..2d91d1b3dfe5492b82ce211963a2c28ef00ea960 100644 (file)
--- 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 <sys/queue.h>
+# include <sys/queue.h>
 #else
-#include "compat-queue.h"
+# include "compat-queue.h"
+#endif
+
+#ifdef HAVE_SYS_CDEFS_H
+# include <sys/cdefs.h>
+#endif
+
+#ifdef __RCSID
+# define RCSID(s)      __RCSID(s)
+#else
+# define RCSID(s)      static const char rcsid[] = s;
 #endif
 
 #endif