-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
0 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +0,0 @@ | ||
#include <stddef.h> | ||
#define alignof(type) offsetof (struct { char c; type member; }, member) | ||
|
||
extern const unsigned char WASM32_INT_SIZE = sizeof(int); | ||
extern const unsigned char WASM32_INT_ALIGN = alignof(int); | ||
|
||
extern const unsigned char WASM32_UNSIGNED_INT_SIZE = sizeof(unsigned int); | ||
extern const unsigned char WASM32_UNSIGNED_INT_ALIGN = alignof(unsigned int); | ||
|
||
extern const unsigned char WASM32_SIZE_T_SIZE = sizeof(size_t); | ||
extern const unsigned char WASM32_SIZE_T_ALIGN = alignof(size_t); | ||
|
||
extern const unsigned char WASM32_UNSIGNED_CHAR_SIZE = sizeof(unsigned char); | ||
extern const unsigned char WASM32_UNSIGNED_CHAR_ALIGN = alignof(unsigned char); | ||
|
||
extern const unsigned char WASM32_PTR_SIZE = sizeof(void*); | ||
extern const unsigned char WASM32_PTR_ALIGN = alignof(void*); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters