Il faut #include <stdio.h> pour definir FILE.