Minor header cleanups & attribute additions
xcb.h: remove __solaris__
ifdef
Nothing was defining __solaris__ on Solaris in current build setup, and
it's not needed on Solaris 10 (released 2005) and later, which has
stdint.h. (Solaris 2.6 - 9 had inttypes.h, but no stdint.h.)
xcb.h: use __has_attribute
to check for attribute((__packed__))
support
Allows supporting it in compilers that don't define `__GNUC__`
add pure
& const
function attributes suggested by gcc -Wsuggest-attribute
This only covers the ones in the pre-written code. There are many more
suggested in the generated code, which will require changing the generator
and will thus be handled separately.