Re: [go-nuts] cgo problem with #defines

2016-06-14 Thread Ian Lance Taylor
On Tue, Jun 14, 2016 at 3:34 PM, Dragos Harabor wrote: > > Are there any plans to fix it? This seems like a simple case, though I > realize macros can be a lot more complicated. I would certainly like to see it fixed but I'm not aware of anybody working on it. > Unfortunately I cannot write cod

Re: [go-nuts] cgo problem with #defines

2016-06-14 Thread Dragos Harabor
On Tuesday, June 14, 2016 at 3:22:54 PM UTC-7, Ian Lance Taylor wrote: > > On Tue, Jun 14, 2016 at 3:15 PM, Dragos Harabor > wrote: > > Is the following code supposed to work? Not sure whether I'm doing > something > > wrong or cgo just doesn't support this style of #defines. I reduced it >

Re: [go-nuts] cgo problem with #defines

2016-06-14 Thread Ian Lance Taylor
On Tue, Jun 14, 2016 at 3:15 PM, Dragos Harabor wrote: > Is the following code supposed to work? Not sure whether I'm doing something > wrong or cgo just doesn't support this style of #defines. I reduced it down > to a simple test case, but the actual problem I ran into came from some 3rd > party

[go-nuts] cgo problem with #defines

2016-06-14 Thread Dragos Harabor
Is the following code supposed to work? Not sure whether I'm doing something wrong or cgo just doesn't support this style of #defines. I reduced it down to a simple test case, but the actual problem I ran into came from some 3rd party .h files that unfortunately I have no control over. package