Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, options.c is the only file that #includes "optlist.h". In theory, if a source file did want to include optlist.h (perhaps for the struct allopt_t declaration so they could deal with a pointer to such a struct), they wouldn't be able to include it because of a static function prototype that it contains. Add some protection to only include that static function prototype when optlist.h is included from options.c.
- Loading branch information
Showing
2 changed files
with
7 additions
and
1 deletion.
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