]> git.mxchange.org Git - flightgear.git/commitdiff
fg mingw fixes part #1
authorhooray <hooray@hush.com>
Mon, 4 Feb 2013 16:35:39 +0000 (17:35 +0100)
committerJames Turner <zakalawe@mac.com>
Mon, 18 Feb 2013 09:18:23 +0000 (09:18 +0000)
Conflicts:
src/Main/bootstrap.cxx

src/Main/bootstrap.cxx

index a4425c76ab0ed76d08d561e47d18ffd9d855db2d..f305b345bf889fd6915f2213a8081653395ba198 100644 (file)
@@ -120,7 +120,7 @@ static void initFPE()
 }
 #endif
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(_WIN32)
 int main ( int argc, char **argv );
 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
                              LPSTR lpCmdLine, int nCmdShow) {
@@ -165,7 +165,7 @@ int _bootstrap_OSInit;
 // Main entry point; catch any exceptions that have made it this far.
 int main ( int argc, char **argv )
 {
-#if _MSC_VER
+#if defined(_MSC_VER) || defined(_WIN32) 
   // Don't show blocking "no disk in drive" error messages on Windows 7,
   // silently return errors to application instead.
   // See Microsoft MSDN #ms680621: "GUI apps should specify SEM_NOOPENFILEERRORBOX"