bind: use the prefix in the include guards

Fixes golang/go#12984.

Change-Id: I485e6071ff136eb3f475d03ebebf8d306f24c931
Reviewed-on: https://go-review.googlesource.com/16027
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
Burcu Dogan
2015-10-18 21:53:35 -07:00
parent 0303da803c
commit 319b6ff544
2 changed files with 4 additions and 4 deletions

View File

@ -88,8 +88,8 @@ func (g *objcGen) genH() error {
g.init()
g.Printf(objcPreamble, g.pkg.Path(), g.gobindOpts(), g.pkg.Path())
g.Printf("#ifndef __Go%s_H__\n", strings.Title(g.pkgName))
g.Printf("#define __Go%s_H__\n", strings.Title(g.pkgName))
g.Printf("#ifndef __%s%s_H__\n", g.prefix, strings.Title(g.pkgName))
g.Printf("#define __%s%s_H__\n", g.prefix, strings.Title(g.pkgName))
g.Printf("\n")
g.Printf("#include <Foundation/Foundation.h>")
g.Printf("\n\n")

View File

@ -3,8 +3,8 @@
//
// File is generated by gobind. Do not edit.
#ifndef __GoCustomprefix_H__
#define __GoCustomprefix_H__
#ifndef __EXCustomprefix_H__
#define __EXCustomprefix_H__
#include <Foundation/Foundation.h>