#include "libipq.h"
extern "C" void ipq_perror(const char *s);
extern "C" { ... }
extern "C" {#include "libipq.h"}