mirror of
https://github.com/go-i2p/gomobile-java.git
synced 2025-07-13 11:54:44 -04:00
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:
@ -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")
|
||||
|
4
bind/testdata/customprefix.objc.h.golden
vendored
4
bind/testdata/customprefix.objc.h.golden
vendored
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user