Skip class / methods that are not defined?

You can't have code that will get compiled using the functions from the wrong library. You will need to use the same #if pattern in setup that you used to control the library include.

You might want to hide all that stuff in your own class that has a standardized set of functions each of which uses the appropriate library function controlled by #if.

1 Like