From 80356a4f02a8b0b041707529502966bb6b2370d1 Mon Sep 17 00:00:00 2001 From: Jonathan Reichelt Gjertsen Date: Mon, 24 May 2021 23:40:29 +0200 Subject: [PATCH] Define `__STRING` for other compilers than MSVC in the host platform.h file (#434) --- src/host/pico_platform/include/pico/platform.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/host/pico_platform/include/pico/platform.h b/src/host/pico_platform/include/pico/platform.h index da060a6..499bdf6 100644 --- a/src/host/pico_platform/include/pico/platform.h +++ b/src/host/pico_platform/include/pico/platform.h @@ -36,6 +36,10 @@ extern "C" { //int running_on_fpga() { return false; } extern void tight_loop_contents(); +#ifndef __STRING +#define __STRING(x) #x +#endif + #ifndef _MSC_VER #ifndef __noreturn #define __noreturn __attribute((noreturn)) @@ -77,10 +81,6 @@ extern void tight_loop_contents(); #define __CONCAT(x,y) x ## y #endif -#ifndef __STRING -#define __STRING(x) #x -#endif() - #define __thread __declspec( thread ) #define PICO_WEAK_FUNCTION_DEF(x) __pragma(comment(linker, __STRING(/alternatename:_##x=_##x##__weak)));