Skip to content

Commit 9af5ac0

Browse files
authored
Add missing includes. (#120)
While there, allow "proxy_wasm_externs.h" externs to be exported as either C (for Wasm) or C++ (for NullVM). Signed-off-by: Piotr Sikora <piotrsikora@google.com>
1 parent f094746 commit 9af5ac0

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ cc_library(
1010
"proxy_wasm_api.h",
1111
"proxy_wasm_externs.h",
1212
],
13+
deps = [
14+
":common_lib",
15+
],
1316
)
1417

1518
cc_library(

proxy_wasm_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// NOLINT(namespace-envoy)
2222
#pragma once
2323

24+
#include <cstdint>
2425
#include <string>
2526

2627
enum class WasmResult : uint32_t {

proxy_wasm_enums.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
// NOLINT(namespace-envoy)
2222
#pragma once
2323

24+
#include <cstdint>
25+
2426
enum class LogLevel : int32_t { trace, debug, info, warn, error, critical, Max = critical };
2527
enum class FilterStatus : int32_t { Continue = 0, StopIteration = 1 };
2628
enum class FilterHeadersStatus : int32_t {

proxy_wasm_externs.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
#include <stddef.h>
2525
#include <stdint.h>
2626

27+
#include "proxy_wasm_common.h"
28+
#include "proxy_wasm_enums.h"
29+
2730
//
2831
// ABI
2932
//

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy