diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2018-06-11 05:10:19 +0600 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2018-06-11 05:10:19 +0600 |
commit | 524bc3960e6a6e5645ce904e20f72479e24e0a23 (patch) | |
tree | 4147b687b1de89d41a2bd2a5fd02620a64e75a77 /src/cmdline.cpp | |
parent | df6c898e8e56886488951bc51967089003768b12 (diff) | |
download | sciteco-524bc3960e6a6e5645ce904e20f72479e24e0a23.tar.gz |
improved Emscripten support: fixed configure-checks, generate *.js and detect EMCurses
* Emscripten can be used (theoretically) to build a host-only platform-independant version
of SciTECO (running under node.js instead of the browser).
* I ported netbsd-curses with Emscripten for that purpose. Therefore, adaptions for running
in the browser are restricted to EMcurses now.
Diffstat (limited to 'src/cmdline.cpp')
-rw-r--r-- | src/cmdline.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmdline.cpp b/src/cmdline.cpp index daf1a9b..9262e27 100644 --- a/src/cmdline.cpp +++ b/src/cmdline.cpp @@ -47,6 +47,12 @@ #include "error.h" #include "cmdline.h" +extern "C" { +#if defined(HAVE_MALLOC_TRIM) && !HAVE_DECL_MALLOC_TRIM +int malloc_trim(size_t pad); +#endif +} + namespace SciTECO { static gchar *filename_complete(const gchar *filename, gchar completed = ' ', |