diff options
Diffstat (limited to 'src/extratypes.h')
| -rw-r--r-- | src/extratypes.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/extratypes.h b/src/extratypes.h new file mode 100644 index 0000000..0dd92db --- /dev/null +++ b/src/extratypes.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. | ||
| 3 | * | ||
| 4 | * This file is part of the libbu++ library and is released under the | ||
| 5 | * terms of the license contained in the file LICENSE. | ||
| 6 | */ | ||
| 7 | |||
| 8 | #ifndef EXTRA_TYPES_H | ||
| 9 | #define EXTRA_TYPES_H | ||
| 10 | |||
| 11 | #include "bu/config.h" | ||
| 12 | |||
| 13 | #include <stdint.h> | ||
| 14 | |||
| 15 | namespace Bu | ||
| 16 | { | ||
| 17 | #ifdef USE_64BIT_IO | ||
| 18 | typedef int64_t size; | ||
| 19 | typedef uint64_t usize; | ||
| 20 | #else | ||
| 21 | typedef int32_t size; | ||
| 22 | typedef uint32_t usize; | ||
| 23 | #endif | ||
| 24 | }; | ||
| 25 | |||
| 26 | #endif | ||
