POSIX: Move C/C++ separation

This commit is contained in:
Lorenz Meier
2017-07-02 21:50:42 +02:00
parent ca7c71b759
commit 1acf547e8b

View File

@@ -87,6 +87,8 @@ typedef struct pollfd px4_pollfd_struct_t;
#define PX4_F_CREAT O_CREAT
#define PX4_STACK_OVERHEAD 8192
__BEGIN_DECLS
typedef short pollevent_t;
typedef struct {
@@ -100,8 +102,6 @@ typedef struct {
void *priv; /* For use by drivers */
} px4_pollfd_struct_t;
__BEGIN_DECLS
__EXPORT int px4_open(const char *path, int flags, ...);
__EXPORT int px4_close(int fd);
__EXPORT ssize_t px4_read(int fd, void *buffer, size_t buflen);