app/internal/log: fold header file into Go preamble

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-05-17 14:51:47 +02:00
parent cfc1991ded
commit 0da1b1bdbc
3 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ package log
/* /*
#cgo CFLAGS: -Werror -fmodules -fobjc-arc -x objective-c #cgo CFLAGS: -Werror -fmodules -fobjc-arc -x objective-c
#include "log_ios.h" __attribute__ ((visibility ("hidden"))) void nslog(char *str);
*/ */
import "C" import "C"
-3
View File
@@ -1,3 +0,0 @@
// SPDX-License-Identifier: Unlicense OR MIT
__attribute__ ((visibility ("hidden"))) void nslog(char *str);
+1 -1
View File
@@ -4,7 +4,7 @@
@import Foundation; @import Foundation;
#include "log_ios.h" #include "_cgo_export.h"
void nslog(char *str) { void nslog(char *str) {
NSLog(@"%@", @(str)); NSLog(@"%@", @(str));