mirror of https://github.com/AxioDL/metaforce.git
Added inttypes
This commit is contained in:
parent
c04e37c1a2
commit
56c21d108c
|
@ -2,6 +2,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <system_error>
|
#include <system_error>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -182,11 +183,11 @@ BlenderConnection::BlenderConnection(bool silenceBlender)
|
||||||
|
|
||||||
wchar_t cmdLine[2048];
|
wchar_t cmdLine[2048];
|
||||||
if (installAttempt == 1)
|
if (installAttempt == 1)
|
||||||
_snwprintf(cmdLine, 2048, L" --background -P \"%s\" -- %d %d \"%s\"",
|
_snwprintf(cmdLine, 2048, L" --background -P \"%s\" -- %" PRIuPTR " %" PRIuPTR " \"%s\"",
|
||||||
blenderShellPath.c_str(), int(writehandle), int(readhandle), blenderAddonPath.c_str());
|
blenderShellPath.c_str(), uintptr_t(writehandle), uintptr_t(readhandle), blenderAddonPath.c_str());
|
||||||
else
|
else
|
||||||
_snwprintf(cmdLine, 2048, L" --background -P \"%s\" -- %d %d",
|
_snwprintf(cmdLine, 2048, L" --background -P \"%s\" -- %" PRIuPTR " %" PRIuPTR,
|
||||||
blenderShellPath.c_str(), int(writehandle), int(readhandle));
|
blenderShellPath.c_str(), uintptr_t(writehandle), uintptr_t(readhandle));
|
||||||
|
|
||||||
STARTUPINFO sinfo = {sizeof(STARTUPINFO)};
|
STARTUPINFO sinfo = {sizeof(STARTUPINFO)};
|
||||||
HANDLE nulHandle = NULL;
|
HANDLE nulHandle = NULL;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9c44d5f4de48e661855b883672dd56491acbe3e5
|
Subproject commit fd55c9298330d0809b5d2c7dc4277f87c6d29c19
|
|
@ -1 +1 @@
|
||||||
Subproject commit 828db515ba316903c367b9dc7acf9d0bec0969e7
|
Subproject commit 317e75c22e31746947bd1b3700cd72d53c97c837
|
|
@ -18,6 +18,7 @@
|
||||||
#include "winsupport.hpp"
|
#include "winsupport.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
Loading…
Reference in New Issue