diff --git a/companion/src/simulation/simulatorinterface.cpp b/companion/src/simulation/simulatorinterface.cpp index abf666afe..641ce188b 100644 --- a/companion/src/simulation/simulatorinterface.cpp +++ b/companion/src/simulation/simulatorinterface.cpp @@ -53,7 +53,7 @@ void registerSimulators() if (!simulatorsFound) { #if defined(__APPLE__) dir = QLibraryInfo::location(QLibraryInfo::PrefixPath) + "/Resources"; -#elif (!defined __GNUC__) || (defined __CYGWIN__) +#elif (!defined __GNUC__) char name[MAX_PATH]; GetModuleFileName(NULL, name, MAX_PATH); QString path(name); @@ -93,4 +93,4 @@ void unregisterSimulators() foreach(SimulatorFactory *factory, registered_simulators) { delete factory; } -} \ No newline at end of file +}