diff options
| author | Christoph Berg <myon@debian.org> | 2026-06-22 12:03:44 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-06-22 12:03:44 +0200 |
| commit | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (patch) | |
| tree | 6d9c83527c56458a8360ba080bf5f4ca73d526dc /map65/main.cpp | |
| parent | 4b089ae3f7e9e2d5662f718f663b26a4e8ee63ca (diff) | |
New upstream version 3.0.2+dfsgupstream/3.0.2+dfsg
Diffstat (limited to 'map65/main.cpp')
| -rw-r--r-- | map65/main.cpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/map65/main.cpp b/map65/main.cpp index 3df7e762..55ef209a 100644 --- a/map65/main.cpp +++ b/map65/main.cpp @@ -5,9 +5,16 @@ #include <QtGui> #endif #include <QApplication> +#ifdef _WIN32 +#include <windows.h> +#endif + #include "revision_utils.hpp" #include "mainwindow.h" +#include "fortran_mutex.hpp" + +#include <cstdio> extern "C" { // Fortran procedures we need @@ -16,19 +23,35 @@ extern "C" { int main(int argc, char *argv[]) { +#ifdef _WIN32 +# ifdef MAP_GUI_SUBSYSTEM + FreeConsole(); +# endif +#endif + +#ifdef _WIN32 +# ifdef MAP_GUI_SUBSYSTEM +# pragma message("MAP_GUI_SUBSYSTEM is defined in C++") +# else +# pragma message("MAP_GUI_SUBSYSTEM is NOT defined in C++") +# endif +#endif QApplication a {argc, argv}; + // Override programs executable basename as application name. a.setApplicationName ("MAP65"); - a.setApplicationVersion ("3.2"); + a.setApplicationVersion ("3.6"); // switch off as we share an Info.plist file with WSJT-X a.setAttribute (Qt::AA_DontUseNativeMenuBar); MainWindow w; + w.show (); QObject::connect (&a, &QApplication::lastWindowClosed, &a, &QApplication::quit); auto result = a.exec (); // clean up lazily initialized FFTW3 resources { + std::lock_guard<std::mutex> lock(g_fortran_decode_mutex); int nfft {-1}; int ndim {1}; int isign {1}; |
