diff --git a/desmume/src/rtc.cpp b/desmume/src/rtc.cpp index a72b8ac2b..1df1ca56d 100644 --- a/desmume/src/rtc.cpp +++ b/desmume/src/rtc.cpp @@ -108,7 +108,10 @@ SFORMAT SF_RTC[]={ static const u8 kDefaultCmdBitsSize[8] = {8, 8, 56, 24, 0, 24, 8, 8}; -#define toBCD(x) ((x / 10) << 4) | (x % 10); +static inline u8 toBCD(u8 x) +{ + return ((x / 10) << 4) | (x % 10); +} bool moviemode=false;