mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user