|
- /*
- * libcucul Canvas for ultrafast compositing of Unicode letters
- * libcaca Colour ASCII-Art library
- * Copyright (c) 2008 Sam Hocevar <sam@zoy.org>
- * All Rights Reserved
- *
- * $Id$
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the Do What The Fuck You Want To
- * Public License, Version 2, as published by Sam Hocevar. See
- * http://sam.zoy.org/wtfpl/COPYING for more details.
- */
-
- /*
- * This file contains definitions for the C99 integer types.
- */
-
- #ifndef __CUCUL_TYPES_H__
- #define __CUCUL_TYPES_H__
-
- #ifndef CUCUL_TYPES
- # define CUCUL_TYPES @CUCUL_TYPES@
- #endif
-
- /* mode 1: standard <inttypes.h> header is present, just include it */
- #if CUCUL_TYPES == 1
- # include <inttypes.h>
-
- /* mode 2: standard <stdint.h> header is present, just include it */
- #elif CUCUL_TYPES == 2
- # include <stdint.h>
-
- /* fallback: nothing is available, we assume the platform is 32-bit and
- * sizeof(long) == sizeof(void *) */
- #else
- typedef signed char int8_t;
- typedef signed short int16_t;
- typedef signed long int int32_t;
-
- typedef unsigned char uint8_t;
- typedef unsigned short uint16_t;
- typedef unsigned long int uint32_t;
-
- typedef long int intptr_t;
- typedef unsigned long int uintptr_t;
-
- #endif
-
- #endif /* __CUCUL_TYPES_H__ */
|