-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpod.h
executable file
·57 lines (42 loc) · 1.01 KB
/
pod.h
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// APK - Copyright (c) 2024 by Robin Southern. https://github.com/betajaen/apk
// Licensed under the MIT License; see LICENSE file.
#pragma once
#if defined (__AMIGA__)
#include <exec/types.h>
namespace apk {
typedef UBYTE uint8;
typedef BYTE int8;
typedef UWORD uint16;
typedef WORD int16;
typedef ULONG uint32;
typedef LONG int32;
typedef UBYTE byte;
typedef uint32 uint;
typedef ULONG uint32_t;
}
#else
#include <stdint.h>
#include <stddef.h>
namespace apk {
typedef uint8_t uint8;
typedef uint16_t uint16;
typedef uint32_t uint32;
typedef int8_t int8;
typedef int16_t int16;
typedef int32_t int32;
typedef uint8_t byte;
typedef uint32 uint;
}
#endif
#if defined (__AMIGA__)
typedef unsigned int APK_SIZE_TYPE;
typedef int APK_SSIZE_TYPE;
#else
typedef size_t APK_SIZE_TYPE;
typedef ptrdiff_t APK_SSIZE_TYPE;
#endif
namespace apk {
typedef APK_SIZE_TYPE size_t;
typedef APK_SSIZE_TYPE ssize_t;
}
#define APK_ATTR_WEAK __attribute__((weak))