From 5cf64dfa707088fcb3d82a5464ca22e153b7654d Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 7 Dec 2005 03:43:30 +0000 Subject: [PATCH] Include stdint.h if it is present. --- tgt-vvp/configure.in | 2 +- tgt-vvp/eval_bool.c | 9 +++++++-- tgt-vvp/vvp_config.h.in | 6 +++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/tgt-vvp/configure.in b/tgt-vvp/configure.in index c27205e5a..7c2937897 100644 --- a/tgt-vvp/configure.in +++ b/tgt-vvp/configure.in @@ -13,7 +13,7 @@ AC_CANONICAL_HOST # Combined check for Microsoft-related bogosities; sets WIN32 if found AX_WIN32 -AC_CHECK_HEADERS(malloc.h) +AC_CHECK_HEADERS(malloc.h stdint.h) # may modify CPPFLAGS and CFLAGS AX_CPP_PRECOMP diff --git a/tgt-vvp/eval_bool.c b/tgt-vvp/eval_bool.c index afa17cebb..f92d073c6 100644 --- a/tgt-vvp/eval_bool.c +++ b/tgt-vvp/eval_bool.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -#ident "$Id: eval_bool.c,v 1.3 2005/12/05 21:20:55 steve Exp $" +#ident "$Id: eval_bool.c,v 1.4 2005/12/07 03:43:30 steve Exp $" /* * This file includes functions for evaluating REAL expressions. @@ -28,7 +28,9 @@ # include #endif # include -//# include +#ifdef HAVE_STDINT_H +# include +#endif # include # include @@ -84,6 +86,9 @@ int draw_eval_bool64(ivl_expr_t exp) /* * $Log: eval_bool.c,v $ + * Revision 1.4 2005/12/07 03:43:30 steve + * Include stdint.h if it is present. + * * Revision 1.3 2005/12/05 21:20:55 steve * Some systems donot have stding.h? * diff --git a/tgt-vvp/vvp_config.h.in b/tgt-vvp/vvp_config.h.in index 7afec9e31..4738a8cd4 100644 --- a/tgt-vvp/vvp_config.h.in +++ b/tgt-vvp/vvp_config.h.in @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: vvp_config.h.in,v 1.1 2004/01/20 21:00:47 steve Exp $" +#ident "$Id: vvp_config.h.in,v 1.2 2005/12/07 03:43:30 steve Exp $" #endif #if defined(__cplusplus) @@ -31,12 +31,16 @@ #endif # undef HAVE_MALLOC_H +# undef HAVE_STDINT_H # undef _LARGEFILE_SOURCE # undef _LARGEFILE64_SOURCE /* * $Log: vvp_config.h.in,v $ + * Revision 1.2 2005/12/07 03:43:30 steve + * Include stdint.h if it is present. + * * Revision 1.1 2004/01/20 21:00:47 steve * Isolate configure from containing config.h *