From 4f0ffa225882d47146bf06ad8cfa9b3c954fee76 Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 14 Jun 2002 03:25:51 +0000 Subject: [PATCH] Compiler portability. --- HName.h | 14 +++++++++----- PDelays.h | 16 ++++++++++------ 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/HName.h b/HName.h index e7308e690..727cf8584 100644 --- a/HName.h +++ b/HName.h @@ -19,13 +19,14 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: HName.h,v 1.1 2001/12/03 04:47:14 steve Exp $" +#ident "$Id: HName.h,v 1.2 2002/06/14 03:25:51 steve Exp $" #endif -#ifdef HAVE_IOSFWD -# include -#else -class ostream; +# include +#ifdef __GNUC__ +#if __GNUC__ > 2 +using namespace std; +#endif #endif /* @@ -78,6 +79,9 @@ extern bool operator == (const hname_t&, const hname_t&); /* * $Log: HName.h,v $ + * Revision 1.2 2002/06/14 03:25:51 steve + * Compiler portability. + * * Revision 1.1 2001/12/03 04:47:14 steve * Parser and pform use hierarchical names as hname_t * objects instead of encoded strings. diff --git a/PDelays.h b/PDelays.h index 32196c3c9..c7185f877 100644 --- a/PDelays.h +++ b/PDelays.h @@ -1,7 +1,7 @@ #ifndef __PDelays_H #define __PDelays_H /* - * Copyright (c) 1999 Stephen Williams (steve@icarus.com) + * Copyright (c) 1999-2002 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -19,16 +19,17 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: PDelays.h,v 1.5 2001/12/29 20:19:31 steve Exp $" +#ident "$Id: PDelays.h,v 1.6 2002/06/14 03:25:51 steve Exp $" #endif # include "svector.h" # include +# include -#ifdef HAVE_IOSFWD -# include -#else -class ostream; +#ifdef __GNUC__ +#if __GNUC__ > 2 +using namespace std; +#endif #endif class Design; @@ -71,6 +72,9 @@ ostream& operator << (ostream&o, const PDelays&); /* * $Log: PDelays.h,v $ + * Revision 1.6 2002/06/14 03:25:51 steve + * Compiler portability. + * * Revision 1.5 2001/12/29 20:19:31 steve * Do not delete delay expressions of UDP instances. *