gcc inline muss static deklariert werden.

This commit is contained in:
Enno Rehling 2005-06-15 21:04:37 +00:00
parent a6ffd0f35b
commit 475bd5a735
2 changed files with 10 additions and 8 deletions

View File

@ -36,7 +36,7 @@ extern "C" {
**** ****/
#if defined __GNUC__
# define HAVE_INLINE
# define INLINE_FUNCTION __inline
# define INLINE_FUNCTION static __inline
#endif
/* define USE_DMALLOC to enable use of the dmalloc library */

View File

@ -1081,13 +1081,15 @@ fix_chaosgates(void)
while (a!=NULL) {
spec_direction * sd = (spec_direction *)a->data.v;
region * r2 = findregion(sd->x, sd->y);
border * b = get_borders(r, r2);
while (b) {
if (b->type==&bt_chaosgate) break;
b = b->next;
}
if (b==NULL) {
b = new_border(&bt_chaosgate, r, r2);
if (r2!=NULL) {
border * b = get_borders(r, r2);
while (b) {
if (b->type==&bt_chaosgate) break;
b = b->next;
}
if (b==NULL) {
b = new_border(&bt_chaosgate, r, r2);
}
}
a = a->nexttype;
}