mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
drivers: vector: Fix PX4 SITL x86 compilation
This commit is contained in:
parent
4889ac0ebb
commit
127d74f2e1
@ -11,6 +11,10 @@
|
||||
#include "vn/util/export.h"
|
||||
#include "vn/types.h"
|
||||
|
||||
#ifndef UNUSED
|
||||
#define UNUSED(x) (void)(sizeof(x))
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@ -2,8 +2,6 @@
|
||||
#include <string.h>
|
||||
#include "vn/util.h"
|
||||
|
||||
//#define UNUSED(x) (void)(sizeof(x))
|
||||
|
||||
VnError VnSpi_genGenericCommand(
|
||||
char cmdId,
|
||||
char* buffer,
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
/* Enable IEEE Std 1003.1b-1993 functionality required for clock_gettime. */
|
||||
#if defined(__linux__) || defined(__NUTTX__)
|
||||
/* Works for Ubuntu 15.10 */
|
||||
#ifndef _POSIX_C_SOURCE
|
||||
#define _POSIX_C_SOURCE 199309L
|
||||
#endif
|
||||
#elif defined __CYGWIN__
|
||||
/* Works for Cygwin 2.4.0 64-bit */
|
||||
#define _POSIX_TIMERS 1
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
/* Enable IEEE Std 1003.1b-1993 functionality required for clock_gettime. */
|
||||
#if defined(__linux__) || defined(__NUTTX__)
|
||||
/* Works for Ubuntu 15.10 */
|
||||
#ifndef _POSIX_C_SOURCE
|
||||
#define _POSIX_C_SOURCE 199309L
|
||||
#endif
|
||||
#elif defined __CYGWIN__
|
||||
/* Works for Cygwin 2.4.0 64-bit */
|
||||
#define _POSIX_TIMERS 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user