[cmake] Invert WITH_FREERDP_3x_DEPRECATED

API breaking change, with this logic the symbol needs to be manually
defined by an API user. So, to fix this:
* Rename to DROP_FREERDP_3x_DEPRECATED
* Invert logic, so a undefined value enables the symbols
This commit is contained in:
akallabeth
2025-03-06 10:46:25 +01:00
parent 52fec2cd03
commit 3186977e15
23 changed files with 48 additions and 43 deletions

View File

@@ -2002,7 +2002,7 @@ UINT32 freerdp_settings_get_uint32(WINPR_ATTR_UNUSED const rdpSettings* settings
case FreeRDP_VCFlags:
return settings->VCFlags;
#if defined(WITH_FREERDP_3x_DEPRECATED)
#if !defined(WITHOUT_FREERDP_3x_DEPRECATED)
// API Compatibility section, remove with FreeRDP 4.x
case (FreeRDP_Settings_Keys_UInt32)FreeRDP_MonitorLocalShiftX:
return (UINT32)settings->MonitorLocalShiftX;
@@ -2533,7 +2533,7 @@ BOOL freerdp_settings_set_uint32(WINPR_ATTR_UNUSED rdpSettings* settings,
settings->VCFlags = cnv.c;
break;
#if defined(WITH_FREERDP_3x_DEPRECATED)
#if !defined(WITHOUT_FREERDP_3x_DEPRECATED)
// API Compatibility section, remove with FreeRDP 4.x
case FreeRDP_MonitorLocalShiftX:
settings->MonitorLocalShiftX = (int32_t)cnv.c;