use px4_defines header to distinguish platform

This commit is contained in:
Roman Bapst
2014-11-11 14:55:33 +01:00
parent c8ad06ff99
commit ed409fd537
15 changed files with 22 additions and 63 deletions
+3 -1
View File
@@ -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