Jump to content
A.M. Hoornweg

Detect if compiler is Delphi 11.1 (and not 11.0) ?

Recommended Posts

Hello all,

 

The delphi 11.1 VCL has some subtle internal changes in high-dpi behavior with respect to version 11.0.  I would like to detect in code if the compiler in use is 11.1 or higher. Is there any possibility to do that?

Share this post


Link to post
1 hour ago, Uwe Raabe said:

{$IF RTLVersion111}

Where is this defined, in the compiler?

Share this post


Link to post
6 minutes ago, SwiftExpat said:

Where is this defined, in the compiler?

No, in System.pas. That's why you cant' use IFDEF here.

  • Thanks 1

Share this post


Link to post

Thanks for that, I was confused because i did not see a RTLVersion110

 

I can see what they did in 10.4.

  RTLVersion = 34.00; RTLVersion1041 = True; RTLVersion1042 = True;

Share this post


Link to post
14 minutes ago, Uwe Raabe said:

No, in System.pas. That's why you cant' use IFDEF here.

Is this a recent addition? In 10.2.3 I don't see any similar entry in system.pas, just the RTLVersion - 32.00

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

×