-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathv8stdint.h
55 lines (43 loc) · 1.1 KB
/
v8stdint.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
#pragma once
#ifndef V8STDINT_H_
#define V8STDINT_H_
#include <stddef.h>
#include <stdio.h>
#if defined(_WIN32) && !defined(__MINGW32__)
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
typedef unsigned int uint32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
#include <stdint.h>
#endif
#define __small_endian
#ifndef __GNUC__
#define __attribute__(x)
#endif
#ifdef _AVR_
typedef uint8_t _size_t;
#define THREAD_PROC
#elif defined (WIN64)
typedef uint64_t _size_t;
#define THREAD_PROC __stdcall
#elif defined (WIN32)
typedef uint32_t _size_t;
#define THREAD_PROC __stdcall
#elif defined (__GNUC__)
typedef unsigned long _size_t;
#define THREAD_PROC
#elif defined (__ICCARM__)
typedef uint32_t _size_t;
#define THREAD_PROC
#endif
typedef _size_t(THREAD_PROC* thread_proc_t) (void*);
typedef int32_t result_t;
#define RESULT_OK 0
#define RESULT_TIMEOUT -1
#define RESULT_FAIL -2
#endif // V8STDINT_H_