/* Returns: the next available fundamental type ID to be registered, or 0 if the type system ran out of fundamental type IDs  */
GType g_type_fundamental_next(void)
/* Returns: the next available fundamental type ID to be registered, or 0 if the type system ran out of fundamental type IDs  */
GType g_type_fundamental_next(void)
{
  GType type;
  G_READ_LOCK (&type_rw_lock);
  type = static_fundamental_next;
  G_READ_UNLOCK (&type_rw_lock);
  type = G_TYPE_MAKE_FUNDAMENTAL (type);
  return type <= G_TYPE_FUNDAMENTAL_MAX ? type : 0;
}