Windows fixes

This commit is contained in:
Jack Andersen 2015-09-26 18:35:36 -10:00
parent 35b71d1772
commit ac1d31e2d6
4 changed files with 8 additions and 2 deletions

View File

@ -212,7 +212,7 @@ BlenderConnection::BlenderConnection(int verbosityLevel)
STARTUPINFO sinfo = {sizeof(STARTUPINFO)};
HANDLE nulHandle = NULL;
if (silenceBlender)
if (verbosityLevel == 0)
{
SECURITY_ATTRIBUTES sattrs = {sizeof(SECURITY_ATTRIBUTES), NULL, TRUE};
nulHandle = CreateFileW(L"nul", GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, &sattrs, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);

View File

@ -5,6 +5,9 @@
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#else
#include <unistd.h>

@ -1 +1 @@
Subproject commit 2db10ad60a86b3cfa59c6328a0e38c7ba1d9088c
Subproject commit 8b9dd56955f0ada6cb89e77eb7ea65fb15efdb0c

View File

@ -13,6 +13,9 @@
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
#include <wchar.h>
#include "winsupport.hpp"