Fixed C99 compatibility