Fixed bug #817
Daniele Forghieri 2009-09-30 15:48:24 PDT Some tests doesn't use the correct include statement (and there are some missing declaration) and some test use C++ variable after statement, preventing compile wicth Open Watcom The patch attached fixes this --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403962
This commit is contained in:
parent
4968cb27ac
commit
00fcbc745d
7 changed files with 16 additions and 8 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
#include <stdio.h>
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
|
|
||||||
/* Make sure we have good macros for printing 32 and 64 bit values */
|
/* Make sure we have good macros for printing 32 and 64 bit values */
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include <stdio.h>
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -14,6 +14,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
/*
|
/*
|
||||||
* includes
|
* includes
|
||||||
*/
|
*/
|
||||||
|
#include <stdlib.h>
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_haptic.h"
|
#include "SDL_haptic.h"
|
||||||
|
|
||||||
|
|
|
@ -210,13 +210,13 @@ HotKey_ToggleFullScreen(void)
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
SDL_Event event;
|
||||||
|
int done = 0;
|
||||||
|
|
||||||
InitVideo(argc, argv);
|
InitVideo(argc, argv);
|
||||||
InitInput();
|
InitInput();
|
||||||
Redraw();
|
Redraw();
|
||||||
|
|
||||||
SDL_Event event;
|
|
||||||
int done = 0;
|
|
||||||
|
|
||||||
while (! done && SDL_WaitEvent(&event))
|
while (! done && SDL_WaitEvent(&event))
|
||||||
{
|
{
|
||||||
switch (event.type)
|
switch (event.type)
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <ctype.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,8 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
quit(0);
|
quit(0);
|
||||||
|
// keep the compiler happy ...
|
||||||
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vi: set ts=4 sw=4 expandtab: */
|
/* vi: set ts=4 sw=4 expandtab: */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue