Add missing #include guards.

This commit is contained in:
Uwe Hermann 2013-11-22 11:59:12 +01:00
parent da21834e42
commit 8645feda60
2 changed files with 8 additions and 3 deletions

View File

@ -64,8 +64,8 @@
* or where otherwise documented a positive value.
*/
#ifndef LIBSERIALPORT_H
#define LIBSERIALPORT_H
#ifndef LIBSERIALPORT_LIBSERIALPORT_H
#define LIBSERIALPORT_LIBSERIALPORT_H
#ifdef __cplusplus
extern "C" {
@ -630,4 +630,4 @@ void sp_free_error_message(char *message);
}
#endif
#endif /* LIBSERIALPORT_H */
#endif

View File

@ -17,6 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBSERIALPORT_LINUX_TERMIOS_H
#define LIBSERIALPORT_LINUX_TERMIOS_H
#define RTS_FLOW 1
#define CTS_FLOW 2
#define DTR_FLOW 4
@ -30,3 +33,5 @@ void set_termios_speed(void *data, int speed);
int get_termiox_size(void);
int get_termiox_flow(void *data);
void set_termiox_flow(void *data, int flags);
#endif