From 6c28032e9b4ca4f633498886e4d81103b8f1e843 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 24 Jun 2012 10:45:28 +0000 Subject: [PATCH] companion9x windows compilation --- src/simpgmspace.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/simpgmspace.cpp b/src/simpgmspace.cpp index 43dfc034a..bf2916449 100644 --- a/src/simpgmspace.cpp +++ b/src/simpgmspace.cpp @@ -35,9 +35,6 @@ #include #include #include -namespace simu { -#include -} volatile uint8_t pinb=0xff, pinc=0xff, pind, pine=0xff, ping=0xff, pinh=0xff, pinj=0xff, pinl=0; uint8_t portb, portc, porth=0, dummyport; @@ -275,8 +272,12 @@ static void EeFsDump(){ } #endif -#if defined(SDCARD) +#if defined(SDCARD) && !defined WIN32 && defined __GNUC__ +namespace simu { +#include +} #include "FatFs/ff.h" + FRESULT f_mount (BYTE, FATFS*) { return FR_OK;