mirror of https://github.com/encounter/SDL.git
visualtest windows build fixes
This commit is contained in:
parent
449ef08dcc
commit
71c497a3a3
|
@ -8,8 +8,8 @@
|
||||||
#include <SDL_platform.h>
|
#include <SDL_platform.h>
|
||||||
|
|
||||||
#if defined(__WIN32__)
|
#if defined(__WIN32__)
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
#include <Shlwapi.h>
|
#include <shlwapi.h>
|
||||||
#elif defined(__LINUX__)
|
#elif defined(__LINUX__)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -8,16 +8,16 @@
|
||||||
|
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
#include <SDL_test.h>
|
#include <SDL_test.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/wait.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
#include "SDL_visualtest_process.h"
|
#include "SDL_visualtest_process.h"
|
||||||
#include "SDL_visualtest_harness_argparser.h"
|
#include "SDL_visualtest_harness_argparser.h"
|
||||||
#include "SDL_visualtest_parsehelper.h"
|
#include "SDL_visualtest_parsehelper.h"
|
||||||
|
|
||||||
#if defined(__LINUX__)
|
#if defined(__LINUX__)
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
static void
|
static void
|
||||||
LogLastError(char* str)
|
LogLastError(char* str)
|
||||||
|
|
|
@ -174,7 +174,7 @@ CloseWindowCallback(HWND hwnd, LPARAM lparam)
|
||||||
GetWindowThreadProcessId(hwnd, &pid);
|
GetWindowThreadProcessId(hwnd, &pid);
|
||||||
if(pid == pinfo->pi.dwProcessId)
|
if(pid == pinfo->pi.dwProcessId)
|
||||||
{
|
{
|
||||||
DWORD result;
|
DWORD_PTR result;
|
||||||
if(!SendMessageTimeout(hwnd, WM_CLOSE, 0, 0, SMTO_BLOCK,
|
if(!SendMessageTimeout(hwnd, WM_CLOSE, 0, 0, SMTO_BLOCK,
|
||||||
1000, &result))
|
1000, &result))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue