asterisk / dahdi-linux

This is the official dahdi-linux repository. All issues and PR should be raised here.
GNU General Public License v2.0
47 stars 69 forks source link

Fix ABS redefined error #40

Closed CharlesMengCA closed 6 months ago

CharlesMengCA commented 10 months ago

ABS could be defined in other header and caused following error:

openwrt/build_dir/target-mips_24kc_musl/linux-ath79_nand/dahdi-linux-2023-09-21-1bb9088f/drivers/dahdi/dahdi_echocan_mg2.c:47: error: "ABS" redefined [-Werror]
   47 | #define ABS(a) abs(a!=-32768?a:-32767)

Rename it to DAHDI_ABS to avoid name collision

sangoma-oss-cla[bot] commented 6 months ago

CLA assistant check
All committers have signed the CLA.