aboutsummaryrefslogtreecommitdiff
path: root/ports/sysdeps/tile/tilegx/string-endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'ports/sysdeps/tile/tilegx/string-endian.h')
-rw-r--r--ports/sysdeps/tile/tilegx/string-endian.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/sysdeps/tile/tilegx/string-endian.h b/ports/sysdeps/tile/tilegx/string-endian.h
index ee9bd1620a..69ca5fedf2 100644
--- a/ports/sysdeps/tile/tilegx/string-endian.h
+++ b/ports/sysdeps/tile/tilegx/string-endian.h
@@ -22,6 +22,8 @@
Also, specify how to count "first" and "last" bits
when the bits have been read as a word. */
+#include <stdint.h>
+
#ifndef __BIG_ENDIAN__
#define MASK(x) (__insn_shl(1ULL, (x << 3)) - 1)
#define NULMASK(x) ((2ULL << x) - 1)