Portability fix: don't declare library function, include appropriate
header.
This commit is contained in:
parent
4a3f0b8146
commit
8538b0b605
1 changed files with 2 additions and 1 deletions
|
@ -48,6 +48,7 @@
|
|||
#include "update.h"
|
||||
#include "subs.h"
|
||||
#include "common.h"
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static void fltp_to_list(struct fltheadstr *, struct emp_qelem *);
|
||||
|
@ -55,7 +56,7 @@ static void fltp_to_list(struct fltheadstr *, struct emp_qelem *);
|
|||
static void
|
||||
cost_ship(struct shpstr *sp, struct fltelemstr *ep, struct fltheadstr *fp)
|
||||
{
|
||||
double mobcost, ceil(double);
|
||||
double mobcost;
|
||||
int howfar;
|
||||
|
||||
mobcost = 0.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue