Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix emscripten support (WebAssembly) #288

Merged
merged 2 commits into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CheckedFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#else
#error "no supported compiler defined"
#endif
#elif defined( __linux__ )
#elif defined( __linux__ ) || defined( __EMSCRIPTEN__ )
#define _LARGEFILE64_SOURCE
#define __LARGE64_FILES
#include <sys/stat.h>
Expand Down Expand Up @@ -487,7 +487,7 @@ uint64_t CheckedFile::lseek64( int64_t offset, int whence )

#if defined( _WIN32 )
__int64 result = _lseeki64( fd_, offset, whence );
#elif defined( __linux__ )
#elif defined( __linux__ ) || defined( __EMSCRIPTEN__ )
int64_t result = ::lseek64( fd_, offset, whence );
#elif defined( __APPLE__ ) || defined( __BSD )
int64_t result = ::lseek( fd_, offset, whence );
Expand Down
Loading