There are similar or same questions all over the internet, but the answers don't work for me. We develop multiplatform product, which is compiled both under Delphi's compiler and under FPC.
First, I used:
, but it couldn't be compiled under FPC, so according to some other source, I used:
instead, but still can't be compiled under FPC.
Can someone find a way that the code will work on both Delphi compiler and FPC? I don't have FPC set up to work with my project, so I can't figure out on my own, how to fix the code to work in FPC (I can test it only in complicated way via build server) and can't find a way, how to do it.
I also wanted to write it using regex, but colleagues say, that it would be too complicated for them.