Skip to content

Commit 19cc54a

Browse files
committed
NoIssue - wrap max function in conditional define.
1 parent be08daf commit 19cc54a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tcUnicodeHelper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ Coord UnicodeFontHandler::textExtents(const char *text, int *baseline, bool prog
2828
return Coord((int)xExtentCurrent, getYAdvance());
2929
}
3030

31+
#ifndef internal_max
3132
#define internal_max(a, b) ((a) < (b) ? (b) : (a));
33+
#endif // internal_max
3234

3335
void UnicodeFontHandler::writeUnicode(uint32_t unicodeText) {
3436
// make sure it's printable.

0 commit comments

Comments
 (0)