ref: 55dc14c317eca4d0ca2b1860514223b66eaa6eb6
parent: 741512775989f2d3a9497167030742797c43e63a
parent: ceb1f19afffc8a17eb132a5ee2f8ff58dd5803b1
author: Christopher Snowhill <[email protected]>
date: Wed Sep 5 14:41:45 EDT 2018
Merge pull request #87 from dos1/emscripten Alias dumb_off_t to int64_t when compiling under Emscripten
--- a/include/dumb.h
+++ b/include/dumb.h
@@ -114,6 +114,9 @@
*/
#include <sys/types.h>
typedef off64_t dumb_off_t;
+#elif defined __EMSCRIPTEN__
+#include <sys/types.h>
+typedef int64_t dumb_off_t;
#elif _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 500
#include <sys/types.h>
typedef off_t dumb_off_t;