From 472fb03cc60e6ca562827a10fdd79eee2163ef4f Mon Sep 17 00:00:00 2001 From: hogthrob Date: Wed, 16 Oct 2019 06:29:12 +0200 Subject: [PATCH] Small fix for building unit test on Windows (#56) Was necessary to add -D __STDC_FORMAT_MACROS for MinGW gcc 8.1.0 --- platformio.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 457dd63..5c2027a 100644 --- a/platformio.ini +++ b/platformio.ini @@ -104,9 +104,10 @@ build_flags = ${env.build_flags} platform = native framework = build_flags = - -std=gnu++11 + -std=gnu++17 -D LITTLE_ENDIAN -D UNIT_TEST + -D __STDC_FORMAT_MACROS # include src directory (otherwise unit-tests will only include lib directory) test_build_project_src = true lib_ignore = USB, mbed-USBDevice, mbed-mbedtls, USBSerial, ESP32, Adafruit_GFX, SX1276GenericLib