Updated VS project files for new EventHandler class.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2852 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2014-02-16 20:52:45 +00:00
parent b2370205ca
commit 14c8546ce1
3 changed files with 14 additions and 6 deletions

View File

@ -125,7 +125,7 @@ static bool BSPF_equalsIgnoreCaseChar(char ch1, char ch2)
// Compare two strings, ignoring case // Compare two strings, ignoring case
inline int BSPF_compareIgnoreCase(const string& s1, const string& s2) inline int BSPF_compareIgnoreCase(const string& s1, const string& s2)
{ {
#if defined WINDOWS && !defined __GNUG__ #if defined BSPF_WINDOWS && !defined __GNUG__
return _stricmp(s1.c_str(), s2.c_str()); return _stricmp(s1.c_str(), s2.c_str());
#else #else
return strcasecmp(s1.c_str(), s2.c_str()); return strcasecmp(s1.c_str(), s2.c_str());
@ -133,7 +133,7 @@ inline int BSPF_compareIgnoreCase(const string& s1, const string& s2)
} }
inline int BSPF_compareIgnoreCase(const char* s1, const char* s2) inline int BSPF_compareIgnoreCase(const char* s1, const char* s2)
{ {
#if defined WINDOWS && !defined __GNUG__ #if defined BSPF_WINDOWS && !defined __GNUG__
return _stricmp(s1, s2); return _stricmp(s1, s2);
#else #else
return strcasecmp(s1, s2); return strcasecmp(s1, s2);
@ -143,7 +143,7 @@ inline int BSPF_compareIgnoreCase(const char* s1, const char* s2)
// Test whether the first string starts with the second one (case insensitive) // Test whether the first string starts with the second one (case insensitive)
inline bool BSPF_startsWithIgnoreCase(const string& s1, const string& s2) inline bool BSPF_startsWithIgnoreCase(const string& s1, const string& s2)
{ {
#if defined WINDOWS && !defined __GNUG__ #if defined BSPF_WINDOWS && !defined __GNUG__
return _strnicmp(s1.c_str(), s2.c_str(), s2.length()) == 0; return _strnicmp(s1.c_str(), s2.c_str(), s2.length()) == 0;
#else #else
return strncasecmp(s1.c_str(), s2.c_str(), s2.length()) == 0; return strncasecmp(s1.c_str(), s2.c_str(), s2.length()) == 0;
@ -151,7 +151,7 @@ inline bool BSPF_startsWithIgnoreCase(const string& s1, const string& s2)
} }
inline bool BSPF_startsWithIgnoreCase(const char* s1, const char* s2) inline bool BSPF_startsWithIgnoreCase(const char* s1, const char* s2)
{ {
#if defined WINDOWS && !defined __GNUG__ #if defined BSPF_WINDOWS && !defined __GNUG__
return _strnicmp(s1, s2, strlen(s2)) == 0; return _strnicmp(s1, s2, strlen(s2)) == 0;
#else #else
return strncasecmp(s1, s2, strlen(s2)) == 0; return strncasecmp(s1, s2, strlen(s2)) == 0;

View File

@ -224,6 +224,7 @@ SDLmain.lib
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="..\common\Base.cxx" /> <ClCompile Include="..\common\Base.cxx" />
<ClCompile Include="..\common\EventHandlerSDL2.cxx" />
<ClCompile Include="..\common\FBSurfaceUI.cxx" /> <ClCompile Include="..\common\FBSurfaceUI.cxx" />
<ClCompile Include="..\common\FBSurfaceTIA.cxx" /> <ClCompile Include="..\common\FBSurfaceTIA.cxx" />
<ClCompile Include="..\common\FrameBufferSDL2.cxx" /> <ClCompile Include="..\common\FrameBufferSDL2.cxx" />
@ -466,6 +467,7 @@ SDLmain.lib
<ClInclude Include="..\common\Array.hxx" /> <ClInclude Include="..\common\Array.hxx" />
<ClInclude Include="..\common\Base.hxx" /> <ClInclude Include="..\common\Base.hxx" />
<ClInclude Include="..\common\bspf.hxx" /> <ClInclude Include="..\common\bspf.hxx" />
<ClInclude Include="..\common\EventHandlerSDL2.hxx" />
<ClInclude Include="..\common\FBSurfaceUI.hxx" /> <ClInclude Include="..\common\FBSurfaceUI.hxx" />
<ClInclude Include="..\common\FBSurfaceTIA.hxx" /> <ClInclude Include="..\common\FBSurfaceTIA.hxx" />
<ClInclude Include="..\common\FrameBufferSDL2.hxx" /> <ClInclude Include="..\common\FrameBufferSDL2.hxx" />

View File

@ -753,6 +753,9 @@
<ClCompile Include="..\debugger\gui\CartDFWidget.cxx"> <ClCompile Include="..\debugger\gui\CartDFWidget.cxx">
<Filter>Source Files\debugger</Filter> <Filter>Source Files\debugger</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\common\EventHandlerSDL2.cxx">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="..\common\Array.hxx"> <ClInclude Include="..\common\Array.hxx">
@ -1517,6 +1520,9 @@
<ClInclude Include="..\debugger\gui\CartDFWidget.hxx"> <ClInclude Include="..\debugger\gui\CartDFWidget.hxx">
<Filter>Header Files\debugger</Filter> <Filter>Header Files\debugger</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\common\EventHandlerSDL2.hxx">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="stella.ico"> <None Include="stella.ico">