Procházet zdrojové kódy

esp32s2/3: Add missing stdlib includes

All three of these headers refer to stdint types, memprot uses stdbool
Angus Gratton před 5 roky
rodič
revize
8aa73aea86

+ 2 - 0
components/esp32s2/include/esp32s2/memprot.h

@@ -18,6 +18,8 @@
  */
 
 #pragma once
+#include <stdbool.h>
+#include <stdint.h>
 #include "esp_attr.h"
 
 #ifdef __cplusplus

+ 2 - 0
components/esp32s3/include/esp32s3/memprot.h

@@ -18,6 +18,8 @@
  */
 
 #pragma once
+#include <stdbool.h>
+#include <stdint.h>
 #include "esp_attr.h"
 
 #ifdef __cplusplus

+ 1 - 0
components/xtensa/include/esp_attr.h

@@ -14,6 +14,7 @@
 #ifndef __ESP_ATTR_H__
 #define __ESP_ATTR_H__
 
+#include <stdint.h>
 #include "sdkconfig.h"
 
 #define ROMFN_ATTR