change define macros to avoid run error on mac 32 bit
Merge pull request #7544 from dabingnn/v3_fixmac32bit

change define macros to avoid run error on mac 32 bit