stdio.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Eistec AB
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
20 #ifndef STDIO_H
21 #define STDIO_H
22 
23 /*
24  * The MSP430 toolchain does not provide getchar in stdio.h.
25  * As a workaround, we include the system stdio.h here and then add getchar.
26  */
27 
28 #include_next <stdio.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #define SEEK_SET 0 /* Seek from beginning of file. */
35 #define SEEK_CUR 1 /* Seek from current position. */
36 #define SEEK_END 2 /* Seek from end of file. */
37 
38 int getchar(void);
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif /* STDIO_H */