1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -05:00

Update: Moved igloo_error_t into types.h so it is more generic

This commit is contained in:
Philipp Schafft 2019-09-12 13:04:36 +00:00
parent e28102841f
commit 281669d113
2 changed files with 13 additions and 10 deletions

View File

@ -30,16 +30,7 @@ extern "C" {
/* Put stuff here */
#include <igloo/config.h>
#ifdef IGLOO_CTC_HAVE_STDINT_H
#include <stdint.h>
#endif
#ifdef IGLOO_CTC_HAVE_STDINT_H
typedef int_least16_t igloo_error_t;
#else
typedef long int igloo_error_t;
#endif
#include <igloo/types.h>
typedef struct {
igloo_error_t error;

View File

@ -29,6 +29,11 @@ extern "C" {
/* For size_t and ssize_t */
#include <sys/types.h>
/* for {,u}int_{,least}{8,16,32,64}_t */
#ifdef IGLOO_CTC_HAVE_STDINT_H
#include <stdint.h>
#endif
#include <igloo/config.h>
/* Included in case is not yet included */
@ -52,6 +57,13 @@ typedef struct igloo_reportxml_database_tag igloo_reportxml_database_t;
typedef struct igloo_ro_base_tag igloo_ro_base_t;
igloo_RO_FORWARD_TYPE(igloo_ro_base_t);
/* For error.h */
#ifdef IGLOO_CTC_HAVE_STDINT_H
typedef int_least16_t igloo_error_t;
#else
typedef long int igloo_error_t;
#endif
#ifdef IGLOO_CTC_HAVE_TYPE_ATTRIBUTE_TRANSPARENT_UNION
typedef union __attribute__ ((__transparent_union__)) {
/* Those are libigloo's own types */