diff options
Diffstat (limited to 'include/ogg/config_types.h')
-rw-r--r-- | include/ogg/config_types.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/include/ogg/config_types.h b/include/ogg/config_types.h index 3891a1c..1a87df6 100644 --- a/include/ogg/config_types.h +++ b/include/ogg/config_types.h @@ -1,10 +1,26 @@ #ifndef __CONFIG_TYPES_H__ #define __CONFIG_TYPES_H__ -typedef short ogg_int16_t; -typedef unsigned short ogg_uint16_t; -typedef int ogg_int32_t; -typedef unsigned int ogg_uint32_t; -typedef long long ogg_int64_t; +/* these are filled in by configure or cmake*/ +#define INCLUDE_INTTYPES_H 1 +#define INCLUDE_STDINT_H 1 +#define INCLUDE_SYS_TYPES_H 1 + +#if INCLUDE_INTTYPES_H +# include <inttypes.h> +#endif +#if INCLUDE_STDINT_H +# include <stdint.h> +#endif +#if INCLUDE_SYS_TYPES_H +# include <sys/types.h> +#endif + +typedef int16_t ogg_int16_t; +typedef uint16_t ogg_uint16_t; +typedef int32_t ogg_int32_t; +typedef uint32_t ogg_uint32_t; +typedef int64_t ogg_int64_t; +typedef uint64_t ogg_uint64_t; #endif |