From 7eb60c9802a4188f45384bdb227962e77913fb74 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 21 Apr 2011 09:20:39 -0700 Subject: [PATCH] We must include the file that has _FILE_OFFSET_SIZE before other headers To get the correct definition for _FILE_OFFSET_SIZE we must include the header that loads this before calling the other system headers. This patch also fixes a minor spacing issues. --- vpi/sys_queue.c | 2 +- vpi/table_mod.c | 2 +- vpi/table_mod_lexor.lex | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vpi/sys_queue.c b/vpi/sys_queue.c index d0e9e41b1..13b35e220 100644 --- a/vpi/sys_queue.c +++ b/vpi/sys_queue.c @@ -16,10 +16,10 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "sys_priv.h" #include #include #include -#include "sys_priv.h" #include "ivl_alloc.h" /* diff --git a/vpi/table_mod.c b/vpi/table_mod.c index 6e86f232f..0d86db6d1 100644 --- a/vpi/table_mod.c +++ b/vpi/table_mod.c @@ -16,12 +16,12 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "sys_priv.h" #include #include #include #include #include -#include "sys_priv.h" #include "table_mod.h" #include "ivl_alloc.h" diff --git a/vpi/table_mod_lexor.lex b/vpi/table_mod_lexor.lex index 6823c9aed..e801b278d 100644 --- a/vpi/table_mod_lexor.lex +++ b/vpi/table_mod_lexor.lex @@ -59,13 +59,13 @@ SCALE [afpnumkKMGT] /* Recognize a real value with a Verilog-AMS scale. */ [+-]?[0-9][0-9_]*(\.[0-9][0-9_]*)?{SCALE} { yylval.real = get_scaled_real(yytext); - return REAL; + return REAL; } /* Recognize and other numeric value. */ [+-]?[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)? { yylval.real = get_real(yytext); - return REAL; + return REAL; } %%