extern "C" { #include "postgres.h" } extern "C" int somefunction(void) { StaticAssertStmt(1 + 1 == 3, "arithmetic!"); return 0; }