#pragma once
// MinGW compatibility shims for cpp-httplib

#ifdef __MINGW32__
#ifdef _WIN32

// GetAddrInfoExCancel is not available in MinGW headers
// Provide a stub to allow compilation
#ifndef GetAddrInfoExCancel
extern "C" {
inline int GetAddrInfoExCancel(void* lpHandle) {
    (void)lpHandle;
    // MinGW doesn't have GetAddrInfoExCancel, so we can't cancel
    // This is a limitation when using MinGW with cpp-httplib
    return 0;
}
}
#endif

#endif // _WIN32
#endif // __MINGW32__
