Re: [go-nuts] cgo long double

2018-10-07 Thread Ian Lance Taylor
On Sun, Oct 7, 2018 at 7:25 PM, wrote: > > The header file smi.h from libsmi (https://github.com/mikeowens/libsmi) > declares a typedef using "long double" > > typedef long double SmiFloat128; > > In Go versions prior to 1.11, programs using smi.h compiled without error. > In Go 1.11,

[go-nuts] cgo long double

2018-10-07 Thread bruceesmith
The header file smi.h from libsmi (https://github.com/mikeowens/libsmi) declares a typedef using "long double" typedef long double SmiFloat128; In Go versions prior to 1.11, programs using smi.h compiled without error. In Go 1.11, cgo calls out "long double" as "unexpected". Here is