1
0
Fork 0

Make some visual C compiler happy

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3031
This commit is contained in:
Peter Veenstra 2007-10-31 11:45:14 +00:00
parent 7da84582f6
commit 6182b08be9
2 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: sdl_mapper.cpp,v 1.45 2007-10-28 16:36:41 qbix79 Exp $ */
/* $Id: sdl_mapper.cpp,v 1.46 2007-10-31 11:43:06 qbix79 Exp $ */
#include <vector>
#include <list>
@ -1217,7 +1217,7 @@ protected:
Bit16u button_state;
};
static struct {
static struct CMapper {
SDL_Surface * surface;
SDL_Surface * draw_surface;
bool exit;

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: support.cpp,v 1.32 2007-06-12 20:22:09 c2woody Exp $ */
/* $Id: support.cpp,v 1.33 2007-10-31 11:45:14 qbix79 Exp $ */
#include <string.h>
#include <stdlib.h>
@ -102,7 +102,7 @@ char * StripWord(char *&line) {
}
}
char * begin=scan;
for (;char c=*scan;scan++) {
for (char c = *scan ;(c = *scan);scan++) {
if (isspace(*reinterpret_cast<unsigned char*>(&c))) {
*scan++=0;
break;