diff --git a/libraries/DataFlash/DataFlash_File.cpp b/libraries/DataFlash/DataFlash_File.cpp index 42c803ca74..97f570abaa 100644 --- a/libraries/DataFlash/DataFlash_File.cpp +++ b/libraries/DataFlash/DataFlash_File.cpp @@ -32,7 +32,7 @@ #include #include #include -#ifdef __APPLE__ +#if defined(__APPLE__) && defined(__MACH__) #include #include #elif !DATAFLASH_FILE_MINIMAL