The first three lines are exactly like that.
My gamestudio version is 7.02
Arrays.c gave me that same error:

Line 81: 'realloc' undeclared identifier