Skip to content

Conflict between binary.h and termio.h #22

@epsilonrt

Description

@epsilonrt

The constants defined in /usr/include/piduino/arduino/binary.h enter into confilt with those defining the baudrates in /usr/include/aarch64-linux-gnu/bits/termios.h:

$ gcc -o PiZiGate_test main.c $(pkg-config --cflags --libs piduino)
In file included from /usr/include/piduino/arduino/Arduino.h:224,
from main.c:11:
/usr/include/piduino/arduino/binary.h:23: warning: "B0" redefined
#define B0 0

In file included from /usr/include/termios.h:39,
from main.c:8:
/usr/include/aarch64-linux-gnu/bits/termios.h:121: note: this is the location of the previous definition
#define B0 0000000 /* hang up */

In file included from /usr/include/piduino/arduino/Arduino.h:224,
from main.c:11:
/usr/include/piduino/arduino/binary.h:65: warning: "B110" redefined
#define B110 6

In file included from /usr/include/termios.h:39,
from main.c:8:
/usr/include/aarch64-linux-gnu/bits/termios.h:124: note: this is the location of the previous definition
#define B110 0000003

In file included from /usr/include/piduino/arduino/Arduino.h:224,
from main.c:11:
/usr/include/piduino/arduino/binary.h:277: warning: "B1000000" redefined
#define B1000000 64

In file included from /usr/include/termios.h:39,
from main.c:8:
/usr/include/aarch64-linux-gnu/bits/termios.h:162: note: this is the location of the previous definition
#define B1000000 0010010

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions