Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions elisp/proto/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -4368,7 +4368,15 @@ enum InitializationResult {
# define VISIBLE
#endif

int VISIBLE emacs_module_init(struct emacs_runtime* rt) {
#if ABSL_HAVE_ATTRIBUTE(used)
# define USED __attribute__((used))
#else
# define USED
#endif

#define EXPORT VISIBLE USED

int EXPORT emacs_module_init(struct emacs_runtime* rt) {
Comment thread
phst marked this conversation as resolved.
enum {
kMinimumRuntimeSize = sizeof *rt,
kMinimumEnvironmentSize = sizeof(struct emacs_env_29)
Expand Down Expand Up @@ -4814,6 +4822,8 @@ int VISIBLE emacs_module_init(struct emacs_runtime* rt) {
return kSuccess;
}

int VISIBLE plugin_is_GPL_compatible = 1;
int EXPORT plugin_is_GPL_compatible = 1;

#undef VISIBLE
#undef USED
#undef EXPORT
Comment thread
phst marked this conversation as resolved.
Loading