mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 06:43:35 +08:00
use px4_defines header to distinguish platform
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
*
|
||||
* Generally used magic defines
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined(__linux) || (defined(__APPLE__) && defined(__MACH__))
|
||||
@@ -45,6 +44,7 @@
|
||||
*/
|
||||
#define __EXPORT
|
||||
//#define PX4_MAIN_FUNCTION(_prefix)
|
||||
#define ORB_DECLARE(x)
|
||||
#else
|
||||
#include <nuttx/config.h>
|
||||
//#define PX4_MAIN_FUNCTION(_prefix) __EXPORT int _prefix##main(int argc, char **argv)() { return main(argc, argv); }
|
||||
@@ -53,4 +53,6 @@
|
||||
#include "drv_orb_dev.h"
|
||||
#define ACCEL_DEVICE_PATH "/dev/accel"
|
||||
|
||||
#include <modules/uORB/uORB.h>
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user