Lets assume we have redefinition problem with windows.h and winsock2.h .
I know how to solve it. To be 100% sure just add line _WINSOCKAPI_ in preprocessor definition. Or define #define _WINSOCKAPI_ befor each windows.h include. But I would like to go more subtile way and define _WINSOCKAPI_ just befor first include windows.h. How to know unit compilation order in order to place #define _WINSOCKAPI_ in right place?
Please correct me if my understanding of redefinition problem is wrong.