I have re-written hal_gpio for libgpiod3 (or gpiod v2.x. Yes it's confusing) It's a major re-arrangement of how things are done to suit a different API paradigm. As such, I don't think conditional compilation of sections will work.
I could put all of both source files in the same file, with a massive #IF Or I could try to be clever, and do some magic in the makefile / config such that the correct source file is chosen. Does anyone know how to do that? Or, maybe I could have both files present and symlink one or the other depending on the libgpiod version. Thoughts? -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
