-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
When trying to compile libesphttpd using ESP8266 SDK 2.0.0 data type related error such as,
../esp-open-sdk/sdk//include/ets_sys.h:31:1: error: unknown type name 'uint32_t'
typedef uint32_t ETSSignal;
are reported. It seems like in SDK 2.0.0 they changed type definitions which causes this problem.
The following patch on the file located at <SDK_ROOT>/include/c_types.h seems to fix these issues.
--- ./c_types.h
+++ ./c_types.h
@@ -8,17 +8,17 @@
#include <stdint.h>
#include <stdbool.h>
-//typedef unsigned char uint8_t;
+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 int uint32_t;
+typedef signed short int16_t;
+typedef unsigned int uint32_t;
typedef signed long sint32_t;
-//typedef signed int int32_t;
+typedef signed int 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;
It would be nice to have this issue fixed in libesphttpd.
Metadata
Metadata
Assignees
Labels
No labels