forked from github/server
gcc inline muss static deklariert werden.
This commit is contained in:
parent
a6ffd0f35b
commit
475bd5a735
|
@ -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 */
|
||||||
|
|
|
@ -1081,13 +1081,15 @@ 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);
|
||||||
border * b = get_borders(r, r2);
|
if (r2!=NULL) {
|
||||||
while (b) {
|
border * b = get_borders(r, r2);
|
||||||
if (b->type==&bt_chaosgate) break;
|
while (b) {
|
||||||
b = b->next;
|
if (b->type==&bt_chaosgate) break;
|
||||||
}
|
b = b->next;
|
||||||
if (b==NULL) {
|
}
|
||||||
b = new_border(&bt_chaosgate, r, r2);
|
if (b==NULL) {
|
||||||
|
b = new_border(&bt_chaosgate, r, r2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
a = a->nexttype;
|
a = a->nexttype;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue