MacOS fixes
This commit is contained in:
@@ -5,7 +5,8 @@
|
|||||||
// meshtastic_ServiceEnvelope that automatically releases dynamically allocated memory when it goes out of scope.
|
// meshtastic_ServiceEnvelope that automatically releases dynamically allocated memory when it goes out of scope.
|
||||||
struct DecodedServiceEnvelope : public meshtastic_ServiceEnvelope {
|
struct DecodedServiceEnvelope : public meshtastic_ServiceEnvelope {
|
||||||
DecodedServiceEnvelope(const uint8_t *payload, size_t length);
|
DecodedServiceEnvelope(const uint8_t *payload, size_t length);
|
||||||
DecodedServiceEnvelope(DecodedServiceEnvelope &) = delete;
|
// const-qualified so std::variant instantiation works on Apple libc++ (copying stays ill-formed either way)
|
||||||
|
DecodedServiceEnvelope(const DecodedServiceEnvelope &) = delete;
|
||||||
DecodedServiceEnvelope(DecodedServiceEnvelope &&);
|
DecodedServiceEnvelope(DecodedServiceEnvelope &&);
|
||||||
~DecodedServiceEnvelope();
|
~DecodedServiceEnvelope();
|
||||||
// Clients must check that this is true before using.
|
// Clients must check that this is true before using.
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "TestUtil.h"
|
#include "TestUtil.h"
|
||||||
|
#include <cstdlib>
|
||||||
#include <unity.h>
|
#include <unity.h>
|
||||||
|
|
||||||
static void test_placeholder()
|
static void test_placeholder()
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "TestUtil.h"
|
#include "TestUtil.h"
|
||||||
|
#include <cstdlib>
|
||||||
#include <unity.h>
|
#include <unity.h>
|
||||||
|
|
||||||
#if defined(ARCH_PORTDUINO)
|
#if defined(ARCH_PORTDUINO)
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ build_flags_common =
|
|||||||
-lyaml-cpp
|
-lyaml-cpp
|
||||||
-ljsoncpp
|
-ljsoncpp
|
||||||
!pkg-config --cflags jsoncpp --silence-errors || :
|
!pkg-config --cflags jsoncpp --silence-errors || :
|
||||||
-li2c
|
|
||||||
-luv
|
-luv
|
||||||
-std=gnu17
|
-std=gnu17
|
||||||
-std=gnu++17
|
-std=gnu++17
|
||||||
|
|||||||
Reference in New Issue
Block a user