mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 14:30:50 -08:00
Minor improvements in module test
* 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.
This commit is contained in:
parent
24be1c8460
commit
c0c309e4cd
2 changed files with 3 additions and 2 deletions
|
|
@ -28,9 +28,9 @@ LDFLAGS =
|
||||||
SO = so
|
SO = so
|
||||||
# -fPIC is a no-op on Windows, but causes a compiler warning
|
# -fPIC is a no-op on Windows, but causes a compiler warning
|
||||||
ifeq ($(SO),dll)
|
ifeq ($(SO),dll)
|
||||||
CFLAGS = -ggdb3 -Wall
|
CFLAGS = -std=gnu99 -ggdb3 -Wall
|
||||||
else
|
else
|
||||||
CFLAGS = -ggdb3 -Wall -fPIC
|
CFLAGS = -std=gnu99 -ggdb3 -Wall -fPIC
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: mod-test.$(SO)
|
all: mod-test.$(SO)
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <emacs-module.h>
|
#include <emacs-module.h>
|
||||||
|
|
||||||
int plugin_is_GPL_compatible;
|
int plugin_is_GPL_compatible;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue