Bug 1726474 - Update rlbox_wasm2c_sandbox and wasm2c_sandbox_compiler for mingw builds. r=shravanrn

Differential Revision: https://phabricator.services.mozilla.com/D123541
This commit is contained in:
Mike Hommey 2021-08-25 07:39:02 +00:00
Родитель 707032f415
Коммит ebf3e96eb4
6 изменённых файлов: 8 добавлений и 14 удалений

Просмотреть файл

@ -9,8 +9,8 @@ origin:
description: rlbox integration for the wasm2c sandboxed code
url: https://github.com/PLSysSec/rlbox_wasm2c_sandbox
release: commit 89df704002aba0fe79ca5b5fb26cda7dbecb5742 (2021-08-18T22:33:54Z).
revision: 89df704002aba0fe79ca5b5fb26cda7dbecb5742
release: commit a7b7233cf1845bc2548ffc7ea06f27e8a024b851 (2021-08-24T08:37:28Z).
revision: a7b7233cf1845bc2548ffc7ea06f27e8a024b851
license: MIT
license-file: LICENSE

Просмотреть файл

@ -9,8 +9,8 @@ origin:
description: wasm2c fork used for rlbox sandboxing
url: https://github.com/PLSysSec/wasm2c_sandbox_compiler
release: commit b785706fd885ffb4255639c31249ba7040b3b83f (2021-08-18T21:38:59Z).
revision: b785706fd885ffb4255639c31249ba7040b3b83f
release: commit 8e81237c485f9282a4c176be50bd3c1f8a3ed7d7 (2021-08-24T09:37:16Z).
revision: 8e81237c485f9282a4c176be50bd3c1f8a3ed7d7
license: Apache-2.0
license-file: LICENSE

Просмотреть файл

@ -22,7 +22,7 @@
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
#include <windows.h>
#else
#include <dlfcn.h>
#endif

4
third_party/wasm2c/wasm2c/wasm-rt-os-win.c поставляемый
Просмотреть файл

@ -11,7 +11,7 @@
#include <stdlib.h>
#include <string.h>
#include <Windows.h>
#include <windows.h>
#ifdef VERBOSE_LOGGING
#define VERBOSE_LOG(...) { printf(__VA_ARGS__); }
@ -282,4 +282,4 @@ int os_clock_getres(void* clock_data, int clock_id, struct timespec* out_struct)
#else
// https://stackoverflow.com/questions/26541150/warning-iso-c-forbids-an-empty-translation-unit
typedef int make_iso_compilers_happy;
#endif
#endif

2
third_party/wasm2c/wasm2c/wasm-rt-runner.c поставляемый
Просмотреть файл

@ -13,7 +13,7 @@
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
#include <windows.h>
#define LINETERM "\r\n"
#else
#include <dlfcn.h>

6
third_party/wasm2c/wasm2c/wasm-rt-wasi.c поставляемый
Просмотреть файл

@ -48,12 +48,6 @@ typedef double f64;
#ifdef _MSC_VER
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#else // _MSC_VER
#ifdef _WIN64
typedef signed long long ssize_t;
#else // _WIN64
typedef signed long ssize_t;
#endif // _WIN64
#endif // _MSC_VER
#endif // _WIN32