mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-17 00:30:04 +00:00
Collections of changes to facilitate compilation on Linux and macOS. (PR #992)
This commit is contained in:
parent
9553106f4e
commit
f2843d4d71
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "RgbMonitor.h"
|
#include "RGBMonitor.h"
|
||||||
#include "Harddisk.h"
|
#include "Harddisk.h"
|
||||||
#include "Disk.h"
|
#include "Disk.h"
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
|
@ -814,7 +814,7 @@ Update_t CmdProfile (int nArgs)
|
|||||||
if (ProfileSave())
|
if (ProfileSave())
|
||||||
{
|
{
|
||||||
TCHAR sText[ CONSOLE_WIDTH ];
|
TCHAR sText[ CONSOLE_WIDTH ];
|
||||||
ConsoleBufferPushFormat ( sText, " Saved: %s", g_FileNameProfile );
|
ConsoleBufferPushFormat ( sText, " Saved: %s", g_FileNameProfile.c_str() );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ConsoleBufferPush( TEXT(" ERROR: Couldn't save file. (In use?)" ) );
|
ConsoleBufferPush( TEXT(" ERROR: Couldn't save file. (In use?)" ) );
|
||||||
|
@ -1066,11 +1066,11 @@ Update_t CmdHelpSpecific (int nArgs)
|
|||||||
// Config - Load / Save
|
// Config - Load / Save
|
||||||
case CMD_CONFIG_LOAD:
|
case CMD_CONFIG_LOAD:
|
||||||
ConsoleColorizePrint( sText, " Usage: [\"filename\"]" );
|
ConsoleColorizePrint( sText, " Usage: [\"filename\"]" );
|
||||||
ConsoleBufferPushFormat( sText, " Load debugger configuration from '%s', or the specificed file.", g_sFileNameConfig );
|
ConsoleBufferPushFormat( sText, " Load debugger configuration from '%s', or the specificed file.", g_sFileNameConfig.c_str() );
|
||||||
break;
|
break;
|
||||||
case CMD_CONFIG_SAVE:
|
case CMD_CONFIG_SAVE:
|
||||||
ConsoleColorizePrint( sText, " Usage: [\"filename\"]" );
|
ConsoleColorizePrint( sText, " Usage: [\"filename\"]" );
|
||||||
ConsoleBufferPushFormat( sText, " Save debugger configuration to '%s', or the specificed file.", g_sFileNameConfig );
|
ConsoleBufferPushFormat( sText, " Save debugger configuration to '%s', or the specificed file.", g_sFileNameConfig.c_str() );
|
||||||
break;
|
break;
|
||||||
// Config - Color
|
// Config - Color
|
||||||
case CMD_CONFIG_COLOR:
|
case CMD_CONFIG_COLOR:
|
||||||
|
@ -12,5 +12,11 @@ extern FILE* g_fh; // Filehandle for log file
|
|||||||
|
|
||||||
void LogInit(void);
|
void LogInit(void);
|
||||||
void LogDone(void);
|
void LogDone(void);
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
void LogOutput(LPCTSTR format, ...);
|
void LogOutput(LPCTSTR format, ...);
|
||||||
void LogFileOutput(LPCTSTR format, ...);
|
void LogFileOutput(LPCTSTR format, ...);
|
||||||
|
#else
|
||||||
|
void LogOutput(LPCTSTR format, ...) __attribute__ ((format (printf, 1, 2)));
|
||||||
|
void LogFileOutput(LPCTSTR format, ...) __attribute__ ((format (printf, 1, 2)));
|
||||||
|
#endif
|
||||||
|
@ -54,7 +54,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#include "SerialComms.h"
|
#include "SerialComms.h"
|
||||||
#include "Speaker.h"
|
#include "Speaker.h"
|
||||||
#include "Tape.h"
|
#include "Tape.h"
|
||||||
#include "tfe/tfe.h"
|
#include "Tfe/tfe.h"
|
||||||
#include "RGBMonitor.h"
|
#include "RGBMonitor.h"
|
||||||
|
|
||||||
#include "z80emu.h"
|
#include "z80emu.h"
|
||||||
|
@ -1041,7 +1041,7 @@ static void MB_Update(void)
|
|||||||
|
|
||||||
static bool MB_DSInit()
|
static bool MB_DSInit()
|
||||||
{
|
{
|
||||||
LogFileOutput("MB_DSInit\n", g_bMBAvailable);
|
LogFileOutput("MB_DSInit\n");
|
||||||
#ifdef NO_DIRECT_X
|
#ifdef NO_DIRECT_X
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include "Card.h"
|
||||||
|
|
||||||
#define REGLOAD(a, b) RegLoadValue(TEXT(REG_CONFIG), (a), TRUE, (b))
|
#define REGLOAD(a, b) RegLoadValue(TEXT(REG_CONFIG), (a), TRUE, (b))
|
||||||
#define REGLOAD_DEFAULT(a, b, c) RegLoadValue(TEXT(REG_CONFIG), (a), TRUE, (b), (c))
|
#define REGLOAD_DEFAULT(a, b, c) RegLoadValue(TEXT(REG_CONFIG), (a), TRUE, (b), (c))
|
||||||
|
@ -1516,7 +1516,7 @@ bool tfe_LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT slot, UINT vers
|
|||||||
throw std::string("Card: wrong version");
|
throw std::string("Card: wrong version");
|
||||||
|
|
||||||
tfe_enabled = yamlLoadHelper.LoadBool(SS_YAML_KEY_ENABLED) ? true : false;
|
tfe_enabled = yamlLoadHelper.LoadBool(SS_YAML_KEY_ENABLED) ? true : false;
|
||||||
set_tfe_interface(yamlLoadHelper.LoadStringA(SS_YAML_KEY_NETWORK_INTERFACE));
|
set_tfe_interface(yamlLoadHelper.LoadString(SS_YAML_KEY_NETWORK_INTERFACE));
|
||||||
|
|
||||||
tfe_started_tx = yamlLoadHelper.LoadBool(SS_YAML_KEY_STARTED_TX) ? true : false;
|
tfe_started_tx = yamlLoadHelper.LoadBool(SS_YAML_KEY_STARTED_TX) ? true : false;
|
||||||
tfe_cannot_use = yamlLoadHelper.LoadBool(SS_YAML_KEY_CANNOT_USE) ? true : false;
|
tfe_cannot_use = yamlLoadHelper.LoadBool(SS_YAML_KEY_CANNOT_USE) ? true : false;
|
||||||
|
@ -27,7 +27,12 @@
|
|||||||
|
|
||||||
/* #define WPCAP */
|
/* #define WPCAP */
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
#include "pcap.h"
|
#include "pcap.h"
|
||||||
|
#else
|
||||||
|
// on Linux and Mac OS X, we use system's pcap.h, which needs to be included as <>
|
||||||
|
#include <pcap.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user