Move project from ST Visual Develop

I move whole project from ST Visual Develop using SPL to Platform IO and after fiting with few errors I can’t resolve one of them. I got error:
src\STM8S103F.h:32: syntax error: token → ‘0x5000’ ; column 29
subprocess error 1
*** [.pio\build\stm8s003f3\src\main.rel] Error 1
His talking about this definition:

/* Port A data output latch register */

and I have many such registers and all they are rise an error if they will participate in compilation.
Please help