~ubuntu-branches/ubuntu/raring/libcaca/raring

« back to all changes in this revision

Viewing changes to caca/caca_types.h.in

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar
  • Date: 2010-02-08 01:40:59 UTC
  • mfrom: (1.1.8 upstream) (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100208014059-9q4av8pze8p7uw3i
Tags: 0.99.beta17-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  libcaca       Colour ASCII-Art library
3
3
 *  libcaca       Colour ASCII-Art library
4
 
 *  Copyright (c) 2008 Sam Hocevar <sam@zoy.org>
 
4
 *  Copyright (c) 2008 Sam Hocevar <sam@hocevar.net>
5
5
 *                All Rights Reserved
6
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
 
7
 *  This library is free software. It comes without any warranty, to
 
8
 *  the extent permitted by applicable law. You can redistribute it
 
9
 *  and/or modify it under the terms of the Do What The Fuck You Want
 
10
 *  To Public License, Version 2, as published by Sam Hocevar. See
12
11
 *  http://sam.zoy.org/wtfpl/COPYING for more details.
13
12
 */
14
13
 
33
32
#   include <inttypes.h>
34
33
#   include <unistd.h>
35
34
 
36
 
/* mode 3: <windows.h> indicates Win32, only (u)intptr_t is present
37
 
 * FIXME: Win64 probably doesn't work that way */
 
35
/* mode 3: Win32, only (u)intptr_t is present */
38
36
#elif CACA_TYPES == 3
39
37
#include <windows.h>
40
38
 
51
49
typedef int ssize_t;
52
50
typedef unsigned int size_t;
53
51
 
 
52
/* mode 4: Win64, only (u)intptr_t and size_t are present */
 
53
#elif CACA_TYPES == 4
 
54
#include <windows.h>
 
55
 
 
56
typedef signed char int8_t;
 
57
typedef signed short int16_t;
 
58
typedef signed long int int32_t;
 
59
typedef signed long long int int64_t;
 
60
 
 
61
typedef unsigned char uint8_t;
 
62
typedef unsigned short uint16_t;
 
63
typedef unsigned long int uint32_t;
 
64
typedef unsigned long long int uint64_t;
 
65
 
 
66
typedef int ssize_t;
 
67
 
54
68
/* fallback: nothing is known, we assume the platform is 32-bit and
55
69
 * sizeof(long) == sizeof(void *). We don't typedef directly because we
56
70
 * have no idea what other typedefs have already been made. */
98
112
#endif
99
113
 
100
114
#endif /* __CACA_TYPES_H__ */
101