* modules/mod-test/mod-test.c: Include stdlib.h, to avoid warnings
about missing prototype of malloc.
* modules/mod-test/Makefile (CFLAGS): Add -std=gnu99, to avoid
compiler warnings.
SO = so
# -fPIC is a no-op on Windows, but causes a compiler warning
ifeq ($(SO),dll)
-CFLAGS = -ggdb3 -Wall
+CFLAGS = -std=gnu99 -ggdb3 -Wall
else
-CFLAGS = -ggdb3 -Wall -fPIC
+CFLAGS = -std=gnu99 -ggdb3 -Wall -fPIC
endif
all: mod-test.$(SO)
#include <assert.h>
#include <stdio.h>
+#include <stdlib.h>
#include <emacs-module.h>
int plugin_is_GPL_compatible;