Some fixes for compilation using Visual Studio.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1212 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2006-12-14 00:07:47 +00:00
parent 0bac94e94f
commit 23482b6d4c
3 changed files with 12 additions and 4 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: DebuggerParser.cxx,v 1.92 2006-12-08 16:48:59 stephena Exp $
// $Id: DebuggerParser.cxx,v 1.93 2006-12-14 00:07:47 stephena Exp $
//============================================================================
#include <fstream>
@ -939,7 +939,7 @@ void DebuggerParser::executeHelp()
static char buf[256];
for(int i = 0; i < kNumCommands; ++i)
{
snprintf(buf, 255, "%13s - %s\n",
SNPRINTF(buf, 255, "%13s - %s\n",
commands[i].cmdString.c_str(),
commands[i].description.c_str());

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: bspf.hxx,v 1.13 2006-01-08 02:28:03 stephena Exp $
// $Id: bspf.hxx,v 1.14 2006-12-14 00:07:47 stephena Exp $
//============================================================================
#ifndef BSPF_HXX
@ -24,7 +24,7 @@
that need to be defined for different operating systems.
@author Bradford W. Mott
@version $Id: bspf.hxx,v 1.13 2006-01-08 02:28:03 stephena Exp $
@version $Id: bspf.hxx,v 1.14 2006-12-14 00:07:47 stephena Exp $
*/
// Types for 8-bit signed and unsigned integers
@ -78,11 +78,13 @@ typedef unsigned int uInt32;
#define STR_CASE_CMP stricmp
#define STR_N_CASE_CMP strnicmp
#define IS_BLANK(c) ((c == ' ') || (c == '\t'))
#define SNPRINTF _snprintf
#define VSNPRINTF _vsnprintf
#else
#define STR_CASE_CMP strcasecmp
#define STR_N_CASE_CMP strncasecmp
#define IS_BLANK(c) isblank(c)
#define SNPRINTF snprintf
#define VSNPRINTF vsnprintf
#endif

View File

@ -497,6 +497,9 @@ SDLmain.lib
<File
RelativePath="..\emucore\Random.cxx">
</File>
<File
RelativePath="..\common\RectList.cxx">
</File>
<File
RelativePath="..\debugger\gui\RomListWidget.cxx">
</File>
@ -997,6 +1000,9 @@ SDLmain.lib
<File
RelativePath="..\emucore\Random.hxx">
</File>
<File
RelativePath="..\common\RectList.hxx">
</File>
<File
RelativePath="..\debugger\gui\RomListWidget.hxx">
</File>