OpenEtherCATsociety / SOEM

Simple Open Source EtherCAT Master
Other
1.35k stars 686 forks source link

Rename PACKED macro to SOEM_PACKED to avoid collision with fmtlib #835

Open rtzoeller opened 4 months ago

rtzoeller commented 4 months ago

There is an unfortunate collision between SOEM and fmtlib, where SOEM's definition of a PACKED macro collides with a template parameter in fmtlib.

This causes some rather inscrutable compile errors, and isn't handled by the existing #ifndef check as fmtlib's usage is not a macro.