error: 'uint8_t' does not name a type

Hi.I am trying to compile example code from RadioHead for my attiny85:

But i get those errors.

In file included from C:\Users\CT\Documents\Arduino\libraries\RadioHead\RHGenericDriver.cpp:6:0:

C:\Users\CT\Documents\Arduino\libraries\RadioHead/RHGenericDriver.h:87:23: error: 'uint8_t' has not been declared

virtual bool recv(uint8_t* buf, uint8_t* len) = 0;

^~~~~~~

C:\Users\CT\Documents\Arduino\libraries\RadioHead/RHGenericDriver.h:87:37: error: 'uint8_t' has not been declared

virtual bool recv(uint8_t* buf, uint8_t* len) = 0;

^~~~~~~

C:\Users\CT\Documents\Arduino\libraries\RadioHead/RHGenericDriver.h:100:29: error: 'uint8_t' does not name a type

virtual bool send(const uint8_t* data, uint8_t len) = 0;

^~~~~~~

C:\Users\CT\Documents\Arduino\libraries\RadioHead/RHGenericDriver.h:100:44: error: 'uint8_t' has not been declared

virtual bool send(const uint8_t* data, uint8_t len) = 0;

^~~~~~~

C:\Users\CT\Documents\Arduino\libraries\RadioHead/RHGenericDriver.h:105:13: error: 'uint8_t' does not name a type

virtual uint8_t maxMessageLength() = 0;

^~~~~~~

In file included from C:\Users\CT\Documents\Arduino\libraries\RadioHead\RHCRC.cpp:43:0:

C:\Users\CT\Documents\Arduino\libraries\RadioHead/RHCRC.h:14:8: error: 'uint16_t' does not name a type; did you mean 'char16_t'?

extern uint16_t RHcrc16_update(uint16_t crc, uint8_t a);

^~~~~~~~

char16_t

C:\Users\CT\Documents\Arduino\libraries\RadioHead/RHGenericDriver.h:119:44: error: 'uint16_t' has not been declared

virtual bool waitPacketSent(uint16_t timeout);

^~~~~~~~

C:\Users\CT\Documents\Arduino\libraries\RadioHead/RHGenericDriver.h:124:50: error: 'uint16_t' has not been declared

virtual bool waitAvailableTimeout(uint16_t timeout);

etc etc etc

It looks like a bug in the library. You need to #include <stdint.h> in the files that use uint8_t etc.

Pieter