msp430: workaround: define errno values if not provided by MSP430 lib

This commit is contained in:
Oleg Hahm 2014-05-19 18:43:55 +02:00
parent 57429954c1
commit 31351a0dc0

View File

@ -2,6 +2,23 @@
#define MSP430_TYPES_H
#include <sys/_types.h>
#include <errno.h>
#ifndef EINVAL
/**
* @brief defines EINVAL if MSP430 toolchain is too old to provide it itself
* via errno.h
*/
#define EINVAL (28)
#endif
#ifndef EOVERFLOW
/**
* @brief defines EOVERFLOW if MSP430 toolchain is too old to provide it itself
* via errno.h
*/
#define EOVERFLOW (65)
#endif
/** defining signed type for size_t */
typedef _ssize_t ssize_t;