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 <[email protected]>
1 parent f094746 commit 9af5ac0

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

BUILD

+3
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

+1
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

+2
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

+3
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)