aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cmdline.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2018-06-11 05:10:19 +0600
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2018-06-11 05:10:19 +0600
commit524bc3960e6a6e5645ce904e20f72479e24e0a23 (patch)
tree4147b687b1de89d41a2bd2a5fd02620a64e75a77 /src/cmdline.cpp
parentdf6c898e8e56886488951bc51967089003768b12 (diff)
downloadsciteco-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.cpp6
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 = ' ',