declaring vars in cpp and not header

and check if this line compiles in gcc:
  ADDR addr = {AF_INET, ip_port.ip.i, ip_port.port};