};
/* Every module should define a function as follows. */
-extern int emacs_module_init (struct emacs_runtime *runtime)
+#ifndef EXPORT
+#define EXPORT extern
+#endif
+
+EXPORT int emacs_module_init (struct emacs_runtime *runtime)
EMACS_NOEXCEPT
EMACS_ATTRIBUTE_NONNULL (1);
POSSIBILITY OF SUCH DAMAGE.
*/
-#include <emacs-module.h>
#include <SWI-Prolog.h>
#include <SWI-Stream.h>
#include <stdlib.h>
#define EXPORT
#endif
+#include <emacs-module.h>
+
EXPORT int plugin_is_GPL_compatible;
+int plugin_is_GPL_compatible;
struct sweep_env {
term_t output_term;
PL_register_foreign("sweep_funcall", 2, sweep_funcall0, 0);
PL_register_foreign("sweep_fd_open", 2, sweep_fd_open, 0);
- r = PL_initialise(nargs, argv);
+ r = PL_initialise((int)nargs, argv);
sweep_thread_id = PL_thread_self();