Skip to content

Commit 13e9f16

Browse files
committed
Add std=c99
This fixes some build issues on osx of the form: ``` ./mpack-src/src/conv.h:7:9: error: 'long long' is an extension when C99 mode is not enabled [-Werror,-Wlong-long] typedef long long mpack_sintmax_t; ```
1 parent 9fb6473 commit 13e9f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ CC ?= gcc
4141
PKG_CONFIG ?= pkg-config
4242
CFLAGS ?= -ansi -O0 -g3 -Wall -Wextra -Werror -Wconversion \
4343
-Wstrict-prototypes -Wno-unused-parameter -pedantic
44-
CFLAGS += -fPIC -DMPACK_DEBUG_REGISTRY_LEAK
44+
CFLAGS += -fPIC -std=c99 -DMPACK_DEBUG_REGISTRY_LEAK
4545
ifeq ($(MPACK_LUA_VERSION_NOPATCH),5.3)
4646
# Lua 5.3 has integer type, which is not 64 bits for -ansi since c89 doesn't
4747
# have `long long` type.

0 commit comments

Comments
 (0)