[simu] Fix Windows builds with SD-enabled targets; Centralize SD check condition. Make some compiler checks more specific (eg. !minGW). (#4144)
This commit is contained in:
committed by
Bertrand Songis
parent
5d5dc67605
commit
143f5ce05e
@@ -38,7 +38,7 @@ extern char * main_thread_error;
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
#if defined(WIN32) || !defined(__GNUC__)
|
||||
#if defined(_MSC_VER) || !defined(__GNUC__)
|
||||
#define write_backtrace(output)
|
||||
#else
|
||||
#include <execinfo.h>
|
||||
@@ -339,7 +339,7 @@ extern void rxPdcUsart( void (*pChProcess)(uint8_t x) );
|
||||
|
||||
#define ISR(x, ...) void x()
|
||||
|
||||
#if !defined(WIN32) && defined(__GNUC__)
|
||||
#if !defined(_MSC_VER) && defined(__GNUC__)
|
||||
#define asm(...)
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user