cgo: add package directory to header include paths

This commit is contained in:
Ayke van Laethem
2018-11-30 13:01:20 +01:00
parent c6069476a7
commit 6cacafb8dc
8 changed files with 25 additions and 8 deletions
+2
View File
@@ -1,3 +1,5 @@
#include "main.h"
int fortytwo() {
return 42;
}
+1 -2
View File
@@ -2,8 +2,7 @@ package main
/*
int fortytwo(void);
typedef short myint;
int add(int a, int b);
#include "main.h"
*/
import "C"
+2
View File
@@ -0,0 +1,2 @@
typedef short myint;
int add(int a, int b);