Skip to content

Commit ac858ce

Browse files
committed
LogMatrix: fix the WASM build the right way (add missing include)
1 parent df55d98 commit ac858ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/LogMatrix.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#include <cassert>
2323
#include <cstdint>
24+
#include <cstdio>
2425

2526
namespace ZXing {
2627

@@ -42,7 +43,6 @@ class LogMatrix
4243
void write(const char* fn)
4344
{
4445
assert(_image);
45-
#ifndef __EMSCRIPTEN_major__
4646
FILE* f = fopen(fn, "wb");
4747

4848
// Write PPM header, P5 == grey, P6 == rgb
@@ -65,7 +65,6 @@ class LogMatrix
6565
fwrite(&b, 1, 1, f);
6666
}
6767
fclose(f);
68-
#endif
6968
}
7069

7170
template <typename T>

0 commit comments

Comments
 (0)