forked from piersfinlayson/esp-open-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
/
c_types-c99.patch
45 lines (41 loc) · 1.48 KB
/
c_types-c99.patch
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
This patch fixes vendor SDK header "c_types.h" for C99 compatibility.
--- esp_iot_sdk_v0.9.4.org/include/c_types.h.orig 2015-08-07 19:56:56.000000000 +0300
+++ esp_iot_sdk_v0.9.4.org/include/c_types.h 2015-12-30 02:23:54.605439011 +0200
@@ -6,17 +6,19 @@
#ifndef _C_TYPES_H_
#define _C_TYPES_H_
-typedef unsigned char uint8_t;
+#include <stdint.h>
+#include <stdbool.h>
+//typedef unsigned char uint8_t;
typedef signed char sint8_t;
-typedef signed char int8_t;
-typedef unsigned short uint16_t;
+//typedef signed char int8_t;
+//typedef unsigned short uint16_t;
typedef signed short sint16_t;
-typedef signed short int16_t;
-typedef unsigned long uint32_t;
+//typedef signed short int16_t;
+//typedef unsigned long uint32_t;
typedef signed long sint32_t;
-typedef signed long int32_t;
+//typedef signed long int32_t;
typedef signed long long sint64_t;
-typedef unsigned long long uint64_t;
+//typedef unsigned long long uint64_t;
typedef unsigned long long u_int64_t;
typedef float real32_t;
typedef double real64_t;
@@ -80,10 +82,10 @@
#endif /* ICACHE_FLASH */
#ifndef __cplusplus
-typedef unsigned char bool;
+//typedef unsigned char bool;
#define BOOL bool
-#define true (1)
-#define false (0)
+//#define true (1)
+//#define false (0)
#define TRUE true
#define FALSE false