internal/build:compile with c mode,when c file
This commit is contained in:
@@ -6,8 +6,6 @@ typedef union
|
||||
long long ll;
|
||||
} castUnion;
|
||||
|
||||
extern "C" {
|
||||
|
||||
double llgoToFloat64(long long v)
|
||||
{
|
||||
castUnion k;
|
||||
@@ -35,5 +33,3 @@ int llgoFromFloat32(float v)
|
||||
k.f = v;
|
||||
return k.v;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -19,7 +19,7 @@ package bitcast
|
||||
import _ "unsafe"
|
||||
|
||||
const (
|
||||
LLGoFiles = "_cast/cast.cpp"
|
||||
LLGoFiles = "_cast/cast.c"
|
||||
LLGoPackage = "link"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user