#ifdef WITH_PTHREAD
#include <pthread.h>
#elif defined(WITH_LEX_YACC)
extern "C" int yywrap(void);
extern "C" void yyerror(char const *s);
#elif defined(WITH_SETUPAPI)
#include <windows.h>
#include <Setupapi.h>
#endif

void b();
void c();

int d()
{
    b();
    c();

#ifdef WITH_PTHREAD
    pthread_t self = pthread_self();
    return static_cast<int>(self);
#elif defined(WITH_LEX_YACC)
    yywrap();
    yyerror("no error");
    return 0;
#elif defined(WITH_SETUPAPI)
    CABINET_INFO ci;
    ci.SetId = 0;
    SetupIterateCabinet(L"invalid-file-path", 0, NULL, NULL);
    return ci.SetId;
#else
    return 0;
#endif
}
