prg2wav - small incompatibility with GCC
Brought to you by:
fabbo
While wav2prg works fine in linux with GCC, prg2wav fails to build with GCC because of line 38, specifically:
__declspec (noreturn) static void help(const struct get_option *options, const char *progname, int errorcode){
Build succeeds if this is changed to:
__attribute__ ((noreturn)) static void help(const struct get_option *options, const char *progname, int errorcode){
A cross platform fix would be something like:
#ifdef _MSC_VER
__declspec (noreturn) static void help(const struct get_option *options, const char *progname, int errorcode){
#else
__attribute__ ((noreturn)) static void help(const struct get_option *options, const char *progname, int errorcode){
#endif
Or at least, I think this works.
Fixed in version 4.1