Why does everybody typedef over standard C types?

前端 未结 4 1909
执笔经年
执笔经年 2020-12-12 23:19

If you want to use Qt, you have to embrace quint8, quint16 and so forth.

If you want to use GLib, you have to welcome

4条回答
  •  忘掉有多难
    2020-12-12 23:39

    For the older libraries, this is needed because the header in question (stdint.h) didn't exist.

    There's still, however, a problem around: those types (uint64_t and others) are an optional feature in the standard. So a complying implementation might not ship with them -- and thus force libraries to still include them nowadays.

提交回复
热议问题