Jump to content
TurboMagic

DEC and FPC compatibility

Recommended Posts

Hello,

 

the DEC (Delphi Encryption Compendium) library recently got a pull request from somebody to make it more compatible with FPC.
While that's nice I took that request, but found out later, that it made it no longer compile on Delphi.

With some help of Stevie I got that fixed, but I guess it now doesn't compile on FPC anymore.

The issue is the use of IFDEF/IFEND etc. constructs.

 

While I want to stay FPC compatible with DEC I have not enough knowledge of FPC and I also lack the time to look after that
part right now. So I'd be grateful if somebody could look at this and make suggestions how to change it so that it is compatible
with both.

 

Cheers

TurboMagic

Share this post


Link to post
3 hours ago, TurboMagic said:

The issue is the use of IFDEF/IFEND etc. constructs.

Can you be more specific?  What is the actual issue?  Indy uses a mix of IFDEF/ENDIF and IF/IFEND, and it works fine in both Delphi and FPC.  You might consider turning on LEGACYIFEND in Delphi XE3+, if you are not already doing so.

 

  • Like 2

Share this post


Link to post
1 hour ago, Remy Lebeau said:

Indy uses a mix of IFDEF/ENDIF and IF/IFEND, and it works fine in both Delphi and FPC.

GR32 too. No problem AFAIK.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×