-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Silence warnings when compiling as ANSI C.
`__func__` is the standard C equivalent to `__FUNCTION__`. Compiling WildMIDI as ANSI C with GCC warnings enabled causes many warning messages to be printed which complain about `__FUNCTION__` not existing in C89. This commit works around it by only using it when compiling as C99 or newer. In C89, the function string is simply dummied-out instead. While I was at it, I used some macro magic to hide most uses of `__FUNCTION__` and `__LINE__`.
- Loading branch information
Showing
13 changed files
with
288 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.