update compiler options, add gnu99 standard

parent 73902acc
......@@ -12,7 +12,7 @@ C_SRC := $(wildcard *.c)
OBJECTS := $(C_SRC:.c=.o)
#OBJECTS := rinterpolate.o rinterpolate-debug.o
LIBRINTERPOLATE_ARCHFLAGS ?= -march=native -mtune=native
CFLAGS := -fPIC -O2 -g $(LIBRINTERPOLATE_ARCHFLAGS) -Wall -Wstrict-prototypes -ffast-math -D__RINTERPOLATE__ -D__RINTERPOLATE_BUILD_BUILD_FLAGS__ $(COPTFLAGS)
CFLAGS := -fPIC -O2 -std=gnu99 -g $(LIBRINTERPOLATE_ARCHFLAGS) -Wall -Wstrict-prototypes -ffast-math -D__RINTERPOLATE__ -D__RINTERPOLATE_BUILD_BUILD_FLAGS__ $(COPTFLAGS)
ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
......
......@@ -8,11 +8,12 @@
#ifndef Autotype
#if defined __GNUC__ && __GNUC__ > 4 && __GNUC_MINOR__ > 9
#define Autotype(X) __auto_type
#else
#define Autotype(X) typeof(X)
#endif // __GNUC__
#endif
#ifndef Autotype
#define Autotype(X) typeof(X)
#endif
/*
* "safe" freeing of memory via the Safe_free macro,
......@@ -45,10 +46,11 @@
# define RESTRICT __restrict
#elif defined(_MSC_VER) && _MSC_VER >= 1400
# define RESTRICT __restrict
#else
# define RESTRICT
#endif
#endif
#ifndef RESTRICT
# define RESTRICT
#endif
#ifdef __GNUC__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment