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__ #if defined __GNUC__
# define HAVE_INLINE # define HAVE_INLINE
# define INLINE_FUNCTION __inline # define INLINE_FUNCTION static __inline
#endif #endif
/* define USE_DMALLOC to enable use of the dmalloc library */ /* define USE_DMALLOC to enable use of the dmalloc library */

View File

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