docs: build: index.adoc: add custom `stdint.h` example
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 29 Sep 2020 01:11:28 +0000 (21:11 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 29 Sep 2020 01:11:28 +0000 (21:11 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
docs/modules/build/pages/index.adoc

index dc4e8e738c311d42e612dbfb2f479eb584376268..768866502a04370ca7bc11d34a713fce78d5ce1a 100644 (file)
@@ -35,6 +35,26 @@ create this file and define the following type definitions:
 * `int32_t`
 * `int64_t`
 
+.Custom `stdint.h`.
+====
+[source,c]
+----
+#ifndef _BARECTF_STDINT_H
+#define _BARECTF_STDINT_H
+
+typedef unsigned char uint8_t;
+typedef unsigned short uint16_t;
+typedef unsigned int uint32_t;
+typedef unsigned long uint64_t;
+typedef signed char int8_t;
+typedef signed short int16_t;
+typedef signed int int32_t;
+typedef signed long int64_t;
+
+#endif /* _BARECTF_STDINT_H */
+----
+====
+
 == Supported C{nbsp}compilers
 
 The C{nbsp}code which barectf generates is known to be compilable
This page took 0.025643 seconds and 4 git commands to generate.