Skip to content

Commit c845680

Browse files
committed
Remove WASM32_* const definitions
The const definitions in `stdio.h` are causing the `wasm-pack` build to fail due to 'duplicate symbol' errors. This can be solved by just removing the definitions.
1 parent 49905b0 commit c845680

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

secp256k1-sys/wasm-sysroot/stdio.h

-17
Original file line numberDiff line numberDiff line change
@@ -1,17 +0,0 @@
1-
#include <stddef.h>
2-
#define alignof(type) offsetof (struct { char c; type member; }, member)
3-
4-
extern const unsigned char WASM32_INT_SIZE = sizeof(int);
5-
extern const unsigned char WASM32_INT_ALIGN = alignof(int);
6-
7-
extern const unsigned char WASM32_UNSIGNED_INT_SIZE = sizeof(unsigned int);
8-
extern const unsigned char WASM32_UNSIGNED_INT_ALIGN = alignof(unsigned int);
9-
10-
extern const unsigned char WASM32_SIZE_T_SIZE = sizeof(size_t);
11-
extern const unsigned char WASM32_SIZE_T_ALIGN = alignof(size_t);
12-
13-
extern const unsigned char WASM32_UNSIGNED_CHAR_SIZE = sizeof(unsigned char);
14-
extern const unsigned char WASM32_UNSIGNED_CHAR_ALIGN = alignof(unsigned char);
15-
16-
extern const unsigned char WASM32_PTR_SIZE = sizeof(void*);
17-
extern const unsigned char WASM32_PTR_ALIGN = alignof(void*);

0 commit comments

Comments
 (0)