Просмотр исходного кода

stdint: Add a definition of UINT8_MAX

This is normally defined in stdint.h but is not used in U-Boot. When
libraries (such as Chromium OS vboot) are built against U-Boot they may
expect this value to be available. Add it to avoid build errors in this
case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 2 лет назад
Родитель
Сommit
09bc3d2eac
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      include/stdint.h

+ 7 - 0
include/stdint.h

@@ -5,3 +5,10 @@
  *
  * U-Boot uses linux types (linux/types.h) so does not make use of stdint.h
  */
+
+#ifndef __UB_STDINT_H
+#define __UB_STDINT_H
+
+#define UINT8_MAX	0xff
+
+#endif