Skip to content

Commit

Permalink
Fixed conditional compilation so that it trigs for all APPLE based OS…
Browse files Browse the repository at this point in the history
…es instead of just OSX.
  • Loading branch information
Lars Wadefalk committed Jun 3, 2014
1 parent f53d57d commit dcfac51
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion d64driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class D64 : public FileDriverBase

const QStringList& extension() const
{
#if !(defined(TARGET_OS_X) || defined(_MSC_VER))
#if !(defined(__APPLE__) || defined(_MSC_VER))
static const QStringList ext({ "D64" });
#else
static QStringList ext;
Expand Down
2 changes: 1 addition & 1 deletion m2idriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class M2I : public FileDriverBase

const QStringList& extension() const
{
#if !(defined(TARGET_OS_X) || defined(_MSC_VER))
#if !(defined(__APPLE__) || defined(_MSC_VER))
static const QStringList ext({ "M2I" });
#else
static QStringList ext;
Expand Down
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ int main(int argc, char *argv[])
// Configure our "looks". Take the most preferred one, but take into accout what may exist on this platform.
foreach(QString style, QStyleFactory::keys())
qDebug() << "style: " << style;
#if !(defined(TARGET_OS_X) || defined(_MSC_VER))
#if !(defined(__APPLE__) || defined(_MSC_VER))
QStringList preferredStyles({ "WindowsXP", "Fusion", "CleanLooks", "Windows"});
#else
QStringList preferredStyles;
Expand All @@ -72,7 +72,7 @@ int main(int argc, char *argv[])
// This works even if the font is not registered in system globally.
static bool addEmbeddedFonts()
{
#if !(defined(TARGET_OS_X) || defined(_MSC_VER))
#if !(defined(__APPLE__) || defined(_MSC_VER))
QStringList list({ "PetMe64.ttf" , "PetMe2X.ttf" , "PetMe1282Y.ttf" });
#else
// NOTE: QT5 for OSX has bug that won't let us use c++11 features. Special compile here until fixed.
Expand Down
2 changes: 1 addition & 1 deletion t64driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class T64 : public FileDriverBase

const QStringList& extension() const
{
#if !(defined(TARGET_OS_X) || defined(_MSC_VER))
#if !(defined(__APPLE__) || defined(_MSC_VER))
static const QStringList ext({ "T64" });
#else
static QStringList ext;
Expand Down
2 changes: 1 addition & 1 deletion x00fs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class x00FS : public NativeFS

const QStringList& extension() const
{
#if !(defined(TARGET_OS_X) || defined(_MSC_VER))
#if !(defined(__APPLE__) || defined(_MSC_VER))
static const QStringList ext( { "P00", "R00", "S00" } );
#else
static QStringList ext;
Expand Down

0 comments on commit dcfac51

Please sign in to comment.