Compatibility with gcc-4.3

Add include statements (<cstdlib> for abort()) and a cast.
Necessary and sufficient for successful compilation with
gcc-4.3 (Debian 4.3.0-4) 4.3.1 20080501 (prerelease)
This commit is contained in:
Larry Doolittle 2008-05-19 08:26:56 -07:00 committed by Stephen Williams
parent 6966c26f27
commit deb7b01717
3 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,7 @@
# include "netmisc.h" # include "netmisc.h"
# include <cstring> # include <cstring>
# include <iostream> # include <iostream>
# include <cstdlib>
# include <stdio.h> # include <stdio.h>
/* /*

View File

@ -20,6 +20,7 @@
# include "config.h" # include "config.h"
# include <iostream> # include <iostream>
# include <cstdlib>
/* /*
* This source file contains all the implementations of the Design * This source file contains all the implementations of the Design

View File

@ -22,6 +22,7 @@
# include "netlist.h" # include "netlist.h"
# include <cstring> # include <cstring>
# include <cstdlib>
# include <sstream> # include <sstream>
# include "ivl_assert.h" # include "ivl_assert.h"
@ -218,7 +219,7 @@ map<perm_string,NetScope::param_expr_t>::iterator NetScope::find_parameter(perm_
if (idx != localparams.end()) if (idx != localparams.end())
return idx; return idx;
return 0; return (map<perm_string,param_expr_t>::iterator) 0;
} }
NetScope::TYPE NetScope::type() const NetScope::TYPE NetScope::type() const