Strange macro definitions coming from nowhere. How to track down?

Hello!

I’ve recently been working on this weather station project, but I’m having a really strange compilation error that I can’t seem to track down. The compiler is complaining:

Compiling .pio/build/dfrobot_firebeetle2_esp32e/src/config.cpp.o
In file included from src/config.cpp:19:
include/config.h:382:4: error: #error Invalid configuration. Exactly one HTTP mode must be selected.
#error Invalid configuration. Exactly one HTTP mode must be selected.
^~~~~

The associated block is:

#if !( defined(USE_HTTP)
^ defined(USE_HTTPS_NO_CERT_VERIF)
^ defined(USE_HTTPS_WITH_CERT_VERIF))
#error Invalid configuration. Exactly one HTTP mode must be selected.
#endif

However, I can’t find any cases where those are being defined. According to syntax highlighting, all of those macros are defined somewhere. In fact, I’ve gone so far as to #undef them in the config header file. I’ve grepped through all of the source for this project, the associated libraries and even the board and framework libraries. I cannot find those macros being defined or how to fix this problem.

Any pointers or suggestions would be greatly appreciated.
Thanks,
Craig

Not reproducible with the latest main version of the repo.

Did you make any modification to the downloaded repo? What git commit are you on? What operating system are you compiling on?

I’m on latest Ubuntu. I’m also finding that a clean clone of the repo compiles fine. I’ve made changes to the config.h and config.cpp that all look innocuous and appropriate. I guess I will roll back my changes and make a small change one at a time to try to track down issue.

I honestly don’t know what was happening originally. I reset my clone and added my changes one by one, compiling as I went along. I believe I have all of my original changes and things are compiling fine now. Very strange.