25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

52 satır
1.3 KiB

  1. /*
  2. * libcucul Canvas for ultrafast compositing of Unicode letters
  3. * libcaca Colour ASCII-Art library
  4. * Copyright (c) 2008 Sam Hocevar <sam@zoy.org>
  5. * All Rights Reserved
  6. *
  7. * $Id$
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the Do What The Fuck You Want To
  11. * Public License, Version 2, as published by Sam Hocevar. See
  12. * http://sam.zoy.org/wtfpl/COPYING for more details.
  13. */
  14. /*
  15. * This file contains definitions for the C99 integer types.
  16. */
  17. #ifndef __CUCUL_TYPES_H__
  18. #define __CUCUL_TYPES_H__
  19. #ifndef CUCUL_TYPES
  20. # define CUCUL_TYPES @CUCUL_TYPES@
  21. #endif
  22. /* mode 1: standard <inttypes.h> header is present, just include it */
  23. #if CUCUL_TYPES == 1
  24. # include <inttypes.h>
  25. /* mode 2: standard <stdint.h> header is present, just include it */
  26. #elif CUCUL_TYPES == 2
  27. # include <stdint.h>
  28. /* fallback: nothing is available, we assume the platform is 32-bit and
  29. * sizeof(long) == sizeof(void *) */
  30. #else
  31. typedef signed char int8_t;
  32. typedef signed short int16_t;
  33. typedef signed long int int32_t;
  34. typedef unsigned char uint8_t;
  35. typedef unsigned short uint16_t;
  36. typedef unsigned long int uint32_t;
  37. typedef long int intptr_t;
  38. typedef unsigned long int uintptr_t;
  39. #endif
  40. #endif /* __CUCUL_TYPES_H__ */