rust/bindgen: Use #pragma once

Same as we do for our other headers.

Closes: #1585
Approved by: jlebon
This commit is contained in:
Colin Walters 2018-09-25 13:06:16 -04:00 committed by Atomic Bot
parent 5d57025e16
commit 363294c3ef

View File

@ -1,6 +1,6 @@
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */" autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
language = "C" language = "C"
header = "#include <gio/gio.h>\ntypedef GError RORGError;" header = "#pragma once\n#include <gio/gio.h>\ntypedef GError RORGError;"
trailer = """ trailer = """
G_DEFINE_AUTOPTR_CLEANUP_FUNC(RORTreefile, ror_treefile_free) G_DEFINE_AUTOPTR_CLEANUP_FUNC(RORTreefile, ror_treefile_free)
""" """