Various tweaks for mingwin32.
This commit is contained in:
parent
59ccf90a60
commit
0d76618950
5 changed files with 17 additions and 13 deletions
|
@ -1072,7 +1072,7 @@ void FGRadioStack::search()
|
|||
|
||||
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 );
|
||||
|
|
|
@ -1,11 +1,17 @@
|
|||
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
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
#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
|
||||
|
@ -92,7 +92,7 @@ SG_USING_STD(string);
|
|||
SG_USING_STD(cout);
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
#define snprintf _snprintf
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
|
@ -672,7 +672,7 @@ void fgHiResDump()
|
|||
#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 )
|
||||
{
|
||||
|
@ -711,7 +711,7 @@ GLubyte *hiResScreenCapture( int multiplier )
|
|||
#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;
|
||||
|
@ -843,7 +843,7 @@ The menu stuff
|
|||
---------------------------------------------------------------------*/
|
||||
char *fileSubmenu [] = {
|
||||
"Exit", /* "Close", "---------", */
|
||||
#if defined( WIN32 ) && !defined( __CYGWIN__)
|
||||
#if defined( WIN32 ) && !defined( __CYGWIN__) && !defined(__MINGW32__)
|
||||
"Print",
|
||||
#endif
|
||||
"Snap Shot",
|
||||
|
@ -856,7 +856,7 @@ char *fileSubmenu [] = {
|
|||
};
|
||||
puCallback fileSubmenuCb [] = {
|
||||
MayBeGoodBye, /* hideMenuCb, NULL, */
|
||||
#if defined( WIN32 ) && !defined( __CYGWIN__)
|
||||
#if defined( WIN32 ) && !defined( __CYGWIN__) && !defined(__MINGW32__)
|
||||
printScreen,
|
||||
#endif
|
||||
/* NULL, notCb, */
|
||||
|
|
|
@ -68,11 +68,6 @@
|
|||
#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"
|
||||
|
||||
|
|
|
@ -36,6 +36,9 @@ SG_USING_STD(ios);
|
|||
#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",
|
||||
|
|
Loading…
Reference in a new issue