arduino ethernet libraries macro selector

The error indicates that you are including both the Ethernet and Ethernet2 libraries. It doesn't look like that would happen from the code you posted but maybe there is another part of your code that also contains an #include directive for one or the other. It's also not clear where W5500_H_INCLUDED would be defined.