One of the header files contains the definition of a macro.
#define ERROR( ... ) log_message( NULL, EMIT_ERR, MODULE_NAME, __VA_ARGS__ ) Turning on windows.h I redefined this definition as follows:
#define ERROR 0 Accordingly, when compiling I get errors like:
called object is not a function or function pointer ERROR( error ); ^ I understand that I can solve this by renaming the macro and replacing its name with 1 in all files by pressing a button, but I’m wondering if there is a more concise solution.
I have already tried to change the order of inclusion (put windows.h before the header file, in which there is a definition). I tried to insert the following construction before the definition:
#ifdef ERROR #undef ERROR #endif But the error is still present.
PASAf_ERRORwill do) - vp_arthdefine erroranddefine error(...)not the same ... - DNSMandM(x)in response - avp