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:
@@ -101,7 +101,7 @@ def write_getter_body(f, values, ret, keys, isPointer, compat_values, typestr, e
|
||||
cast = '(void*)'
|
||||
write_getter_case(f, val, cast, None)
|
||||
if compat_values:
|
||||
f.write('#if defined(WITH_FREERDP_3x_DEPRECATED)\n')
|
||||
f.write('#if !defined(WITHOUT_FREERDP_3x_DEPRECATED)\n')
|
||||
for i in range(len(compat_values)):
|
||||
val = compat_values[i]
|
||||
cast = '(' + entry_type + ')'
|
||||
@@ -219,7 +219,7 @@ def write_setter(f, entry_dict, entry_type, entry_name, postfix, compat_dict):
|
||||
cast = '(' + k + ')'
|
||||
write_setter_case(f, val, postfix, isPointer, cast)
|
||||
if compat_values:
|
||||
f.write('#if defined(WITH_FREERDP_3x_DEPRECATED)\n')
|
||||
f.write('#if !defined(WITHOUT_FREERDP_3x_DEPRECATED)\n')
|
||||
for val in compat_values:
|
||||
cast = '(int32_t)'
|
||||
f.write('\t\t// API Compatibility section, remove with FreeRDP 4.x\n')
|
||||
|
||||
Reference in New Issue
Block a user