mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
cgo: add package directory to header include paths
This commit is contained in:
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
#include "main.h"
|
||||
|
||||
int fortytwo() {
|
||||
return 42;
|
||||
}
|
||||
|
||||
Vendored
+1
-2
@@ -2,8 +2,7 @@ package main
|
||||
|
||||
/*
|
||||
int fortytwo(void);
|
||||
typedef short myint;
|
||||
int add(int a, int b);
|
||||
#include "main.h"
|
||||
*/
|
||||
import "C"
|
||||
|
||||
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
typedef short myint;
|
||||
int add(int a, int b);
|
||||
Reference in New Issue
Block a user