including the files in source file instead of header file fixed 'conflicting type' errors in idf macros when using newer version ESP-IDF v4.4.4-148-g4c2afac355