make hsc2hs work with -c g++
|Reported by:||elaforge||Owned by:|
|Type of failure:||None/Unknown||Difficulty:||Unknown|
|Test Case:||Blocked By:|
Ticket #2897 changed hsc2hs to create a *_utils.c file containing stub functions for several libc functions. To avoid template-hsc.h having to include stdio.h, they use (void *) instead of (FILE *). C compilers will happily cast the void* to FILE*, but g++ is more picky. It's easily fixed by adding an explicit cast to FILE*.