From 26aee6cbae9b01cea2dc2d0079480f2e732631c3 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Fri, 30 Nov 2007 21:11:27 -0800 Subject: [PATCH] Clean up warnings for round() function declaration. --- vpi/sys_scanf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vpi/sys_scanf.c b/vpi/sys_scanf.c index bf333af59..66126d193 100644 --- a/vpi/sys_scanf.c +++ b/vpi/sys_scanf.c @@ -20,6 +20,10 @@ #ident "$Id: sys_scanf.c,v 1.8 2007/04/16 00:09:58 steve Exp $" #endif + /* round() is ISO C99 from math.h. This define should enable it. */ +# define _ISOC99_SOURCE 1 +# define _SVID_SOURCE 1 + # include "vpi_user.h" # include "sys_priv.h" # include