SITL: Fix multi #include's

This commit is contained in:
Jaaaky 2021-12-16 18:06:16 +03:00 committed by Andrew Tridgell
parent e991bff0d5
commit 71154105e4

View File

@ -39,15 +39,15 @@ param fetch
#include "SIM_SerialDevice.h" #include "SIM_SerialDevice.h"
#include <stdio.h>
#define SIM_FTW_DEBUGGING 0 #define SIM_FTW_DEBUGGING 0
#if SIM_FTW_DEBUGGING #if SIM_FTW_DEBUGGING
#include <stdio.h>
#define simfet_debug(fmt, args ...) do {::fprintf(stderr,"SIMFET: %s:%d: " fmt "\n", __FUNCTION__, __LINE__, ## args); } while(0) #define simfet_debug(fmt, args ...) do {::fprintf(stderr,"SIMFET: %s:%d: " fmt "\n", __FUNCTION__, __LINE__, ## args); } while(0)
#else #else
#define simfet_debug(fmt, args ...) #define simfet_debug(fmt, args ...)
#endif #endif
#include <stdio.h>
namespace SITL { namespace SITL {