gotranspile / cxgo

Tool for transpiling C to Go.
https://gotranspile.dev
MIT License
337 stars 22 forks source link

Define builtin types (size_t, ptrdiff_t, etc) #33

Closed dennwc closed 3 years ago

dennwc commented 3 years ago

After discussion in https://gitlab.com/cznic/cc/-/issues/126 it's clear that cxgo must define types like size_t, ptrdiff_t, etc.

TotallyGamerJet commented 3 years ago

Isn’t it already defined in stddef.h?

dennwc commented 3 years ago

They are, but the problem is that they actually need to be defined as builtins (without any includes).