-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util: Include 'var.h' for external symbols instead of declaring locally
Some global variables were declared locally without an extern qualifier. This leads to link errors with newer toolchains. Instead, drop the declarations and include "var.h" which provides all the proper declarations.
- Loading branch information
Showing
3 changed files
with
4 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#define _UTIL_C_ | ||
|
||
#include "bbs.h" | ||
#include "var.h" | ||
|
||
time4_t now; | ||
|
||
#undef MAX_GUEST_LIFE | ||
#undef MAX_LIFE | ||
|
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