Skip to content

Commit

Permalink
[CORE] Fix unit test builds
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFakeMontyOnTheRun committed Jul 1, 2024
1 parent 4ab377b commit a24763a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/src/Common.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ int countLines(const char* text) {
while(*text) {
++chars;

if ( (chars >= (XRES_FRAMEBUFFER / 8)) || *text == '\n') {
if (
#ifdef XRES_FRAMEBUFFER
(chars >= (XRES_FRAMEBUFFER / 8)) ||
#endif
*text == '\n') {
++lines;
chars = 0;
}
Expand Down

0 comments on commit a24763a

Please sign in to comment.