aboutsummaryrefslogtreecommitdiff
path: root/src/stable/extratypes.h
blob: 77025c745717b59d10ed00f0bc62412c869f5d2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (C) 2007-2019 Xagasoft, All rights reserved.
 *
 * This file is part of the libbu++ library and is released under the
 * terms of the license contained in the file LICENSE.
 */

#ifndef EXTRA_TYPES_H
#define EXTRA_TYPES_H

#include "bu/config.h"

#include <stdint.h>

#ifndef NULL
#define NULL 0
#endif

namespace Bu
{
#ifdef USE_64BIT_IO
    typedef int64_t     size;
    typedef uint64_t    usize;
#else
    typedef int32_t     size;
    typedef uint32_t    usize;
#endif
};

#endif