mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
Remove include <log.h> from defines.h
The reason for this is that log.h includes drv_hrt.h which sucks in half the project's include files with it, which causes strange build issues
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include <px4_platform/cpuload.h>
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/printload.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <px4_platform_common/init.h>
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/px4_config.h>
|
||||
#include <px4_platform_common/px4_manifest.h>
|
||||
#include <px4_platform_common/console_buffer.h>
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
* PX4 Middleware Wrapper NuttX Implementation
|
||||
*/
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
#include <px4_platform_common/defines.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
#if defined(PX4_CRYPTO)
|
||||
|
||||
#include <px4_platform/board_ctrl.h>
|
||||
#include <px4_platform_common/crypto.h>
|
||||
#include <px4_platform_common/crypto_backend.h>
|
||||
#include <sys/boardctl.h>
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <px4_platform/board_ctrl.h>
|
||||
|
||||
#include <sys/boardctl.h>
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
*/
|
||||
|
||||
#include <systemlib/px4_macros.h>
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/px4_config.h>
|
||||
#include <px4_platform_common/defines.h>
|
||||
#include <px4_platform/board_determine_hw_info.h>
|
||||
|
||||
Reference in New Issue
Block a user