Skip to content
Snippets Groups Projects
Commit 31351a0d authored by Oleg Hahm's avatar Oleg Hahm
Browse files

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

parent 57429954
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment