For my photon based project I used the following 2 community libraries:
I ended up in forking both and had to do only a few changes to make them work on the Photon. Now I am looking for a possibility to make these changes in a way that the same library works on a photon and on a core. Once that is done I want submit a Pull Request to get the changes back into the original repository.
What I am looking for is some hints how to accomplish that. From my point of view I only need a preprocessor macro to distinguish between the 2 platforms. Do such macros exist ? Am I on the right track ?
Any input is appreciated.