Add _XOPEN_SOURCE to amalgamate.py

pull/13171/head
Bo Yang 6 years ago
parent da8d1392c1
commit 8b75e5c119
  1. 1
      tools/amalgamate.py

@ -17,6 +17,7 @@ class Amalgamator:
self.output_c = open(output_path + "upb.c", "w") self.output_c = open(output_path + "upb.c", "w")
self.output_c.write("/* Amalgamated source file */\n") self.output_c.write("/* Amalgamated source file */\n")
self.output_c.write('#define _XOPEN_SOURCE 700\n')
self.output_c.write('#include "upb.h"\n') self.output_c.write('#include "upb.h"\n')
self.output_c.write(open("upb/port_def.inc").read()) self.output_c.write(open("upb/port_def.inc").read())

Loading…
Cancel
Save