[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:
Max Paperno
2016-12-17 13:41:16 +01:00
committed by Bertrand Songis
parent 5d5dc67605
commit 143f5ce05e
2 changed files with 15 additions and 10 deletions
+2 -2
View File
@@ -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