Deprecate sized integer types in favour of C99 stdint.h
In short:
unconditionally add#include <stdint.h>
toglibconfig.h
change all theg(u)int(8|16|32|64)
typedefs to their respective C99 standard integer typesdrop all the build system gunk to detect the size of each type
We should stop reinventing the C standard, and just require stdint.h; we don't really support any platform that doesn't also support C99, these days. This would also be the prelude to the deprecation of the special typedefs in GLib, and a general move towards stdint.h types.
Additionally, this would take care of weirdo platforms that re-define sized integers, like macOS (#972 (closed)).
From the latest discussion about this:
At this point, a way forward is to start soft-deprecating all the g* types and tell people to use C99 types in newly written code.
We should also introduce
GParamSpecBool
andG_TYPE_BOOL
mapping to C99's_Bool
, and soft-deprecate gboolean.
Edited by Philip Withnall