if ( current_navlist->query( lon, lat, elev, adf_freq, &nav ) ) {
char freq[128];
-#if defined( _MSC_VER )
+#if defined( _MSC_VER ) || defined(__MINGW32__)
_snprintf( freq, 10, "%.0f", adf_freq );
#else
snprintf( freq, 10, "%.0f", adf_freq );
noinst_LIBRARIES = libGUI.a
+if ENABLE_NETWORK_OLK
+NETWORK_SRCS = net_dlg.cxx net_dlg.hxx
+else
+NETWORK_SRCS =
+endif
+
libGUI_a_SOURCES = \
apt_dlg.cxx apt_dlg.hxx \
gui.cxx gui.h \
gui_local.cxx gui_local.hxx \
mouse.cxx \
- net_dlg.cxx net_dlg.hxx \
+ $(NETWORK_SRCS) \
sgVec3Slider.cxx sgVec3Slider.hxx \
trackball.c trackball.h
#include <NetworkOLK/network.h>
#endif
-#if defined( WIN32 ) && !defined( __CYGWIN__ )
+#if defined( WIN32 ) && !defined( __CYGWIN__ ) && !defined(__MINGW32__)
# include <simgear/screen/win32-printer.h>
# include <simgear/screen/GlBitmaps.h>
#endif
SG_USING_STD(cout);
#endif
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__MINGW32__)
#define snprintf _snprintf
#endif /* _MSC_VER */
#endif // #if defined( TR_HIRES_SNAP)
-#if defined( WIN32 ) && !defined( __CYGWIN__)
+#if defined( WIN32 ) && !defined( __CYGWIN__) && !defined(__MINGW32__)
static void rotateView( double roll, double pitch, double yaw )
{
#endif
-#if defined( WIN32 ) && !defined( __CYGWIN__)
+#if defined( WIN32 ) && !defined( __CYGWIN__) && !defined(__MINGW32__)
// win32 print screen function
void printScreen ( puObject *obj ) {
bool show_pu_cursor = false;
---------------------------------------------------------------------*/
char *fileSubmenu [] = {
"Exit", /* "Close", "---------", */
-#if defined( WIN32 ) && !defined( __CYGWIN__)
+#if defined( WIN32 ) && !defined( __CYGWIN__) && !defined(__MINGW32__)
"Print",
#endif
"Snap Shot",
};
puCallback fileSubmenuCb [] = {
MayBeGoodBye, /* hideMenuCb, NULL, */
-#if defined( WIN32 ) && !defined( __CYGWIN__)
+#if defined( WIN32 ) && !defined( __CYGWIN__) && !defined(__MINGW32__)
printScreen,
#endif
/* NULL, notCb, */
#include <Main/fg_props.hxx>
#include <Main/viewmgr.hxx>
-#if defined( WIN32 ) && !defined( __CYGWIN__ )
-# include <simgear/screen/win32-printer.h>
-# include <simgear/screen/GlBitmaps.h>
-#endif
-
#include "gui.h"
#include "gui_local.hxx"
#endif
SG_USING_STD(string);
+#if defined(_MSC_VER) || defined(__MINGW32__)
+#define snprintf _snprintf
+#endif
string axes_humannames[8] = { "elevator", "ailerons", "rudder", "throttle",
"mixture","propller pitch", "lateral view",