Merge pull request #7533 from dabingnn/v3_windowsDllCompileError

fix windows compile error
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