Skip to content

Commit

Permalink
Fix emscripten compilation (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
maz-1 committed May 10, 2024
1 parent 0ee5ff6 commit d80a63f
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit d80a63f

Please sign in to comment.