I'm looking for a way to tell the #include statement where to look for a specific header file.
For example, if I have library ABC that includes a file called xyz.h, but I also have library HAL with a file called xyz.h. How do I tell the compiler which one to use? I tried unsuccessfully to add a path as part of the name, and I also tried copying the desired libraries to the sketch folder - it worked a little better but still found the other header and tried to use it instead.
Here is an example that doesn't cause too much problems as the header files appear to be identical: Both the Ethernet and Ethernet2 libraries have header files with identical names (such as Dhcp.h) in their folders, and when compiling it points out bitterly that it had to pick one over the other. Sometimes it grabs them from the Ethernet folder, sometimes from the Ethernet2 folder.
So is this something that can be done?