mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-08-09 04:22:44 +03:00
Workaround gcc/newlib issue on Ubuntu 24 (#1863)
This commit is contained in:
@@ -17,6 +17,9 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <pico/double.h>
|
#include <pico/double.h>
|
||||||
#include "pico/stdlib.h"
|
#include "pico/stdlib.h"
|
||||||
|
// Include sys/types.h before inttypes.h to work around issue with
|
||||||
|
// certain versions of GCC and newlib which causes omission of PRIx64
|
||||||
|
#include <sys/types.h>
|
||||||
#include "inttypes.h"
|
#include "inttypes.h"
|
||||||
|
|
||||||
#define test_assert(x) ({ if (!(x)) { printf("Assertion failed: ");puts(#x);printf(" at " __FILE__ ":%d\n", __LINE__); exit(-1); } })
|
#define test_assert(x) ({ if (!(x)) { printf("Assertion failed: ");puts(#x);printf(" at " __FILE__ ":%d\n", __LINE__); exit(-1); } })
|
||||||
|
@@ -17,6 +17,9 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <pico/float.h>
|
#include <pico/float.h>
|
||||||
#include "pico/stdlib.h"
|
#include "pico/stdlib.h"
|
||||||
|
// Include sys/types.h before inttypes.h to work around issue with
|
||||||
|
// certain versions of GCC and newlib which causes omission of PRIx64
|
||||||
|
#include <sys/types.h>
|
||||||
#include "inttypes.h"
|
#include "inttypes.h"
|
||||||
|
|
||||||
#define test_assert(x) ({ if (!(x)) { printf("Assertion failed: ");puts(#x);printf(" at " __FILE__ ":%d\n", __LINE__); exit(-1); } })
|
#define test_assert(x) ({ if (!(x)) { printf("Assertion failed: ");puts(#x);printf(" at " __FILE__ ":%d\n", __LINE__); exit(-1); } })
|
||||||
|
@@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
// Include sys/types.h before inttypes.h to work around issue with
|
||||||
|
// certain versions of GCC and newlib which causes omission of PRIu64
|
||||||
|
#include <sys/types.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@@ -5,6 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
// Include sys/types.h before inttypes.h to work around issue with
|
||||||
|
// certain versions of GCC and newlib which causes omission of PRIu64
|
||||||
|
#include <sys/types.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include "pico/stdlib.h"
|
#include "pico/stdlib.h"
|
||||||
#include "pico/bit_ops.h"
|
#include "pico/bit_ops.h"
|
||||||
|
@@ -10,6 +10,9 @@
|
|||||||
#include <hardware/sync.h>
|
#include <hardware/sync.h>
|
||||||
#include "pico/stdlib.h"
|
#include "pico/stdlib.h"
|
||||||
#include "pico/test.h"
|
#include "pico/test.h"
|
||||||
|
// Include sys/types.h before inttypes.h to work around issue with
|
||||||
|
// certain versions of GCC and newlib which causes omission of PRIi64
|
||||||
|
#include <sys/types.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
PICOTEST_MODULE_NAME("pico_time_test", "pico_time test harness");
|
PICOTEST_MODULE_NAME("pico_time_test", "pico_time test harness");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user