diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-06 08:52:23 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-06 08:52:23 +0100 |
commit | ddf863c9d17fa4f9caee338dedff882315f32a6c (patch) | |
tree | c924a97d530b57f79c211443d1238dcd1de03dc6 | |
parent | 0575841c499e85e46939bb0f472c8a68fa27b77c (diff) | |
download | tbdiff-ddf863c9d17fa4f9caee338dedff882315f32a6c.tar.gz |
Made the inline function more standard
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | tbdiff.h | 5 |
2 files changed, 3 insertions, 3 deletions
@@ -8,7 +8,6 @@ DEPLOY=tbdiff-deploy CREATE=tbdiff-create CFLAGS ?= -CFLAGS += -std=gnu99 CFLAGS += -g CFLAGS += -Wall -Wextra -Werror -Wno-unused-result $(OPT) @@ -78,8 +78,9 @@ typedef enum { #define TBD_ERROR(e) (e) #else #define TBD_ERROR(e) tbd_error(e, #e, __func__, __LINE__, __FILE__) -inline tbd_error_e tbd_error(tbd_error_e e, char const *s, char const *func, - int line, char const* file) +static inline tbd_error_e +tbd_error(tbd_error_e e, char const *s, char const *func, int line, + char const* file) { if (e != TBD_ERROR_SUCCESS) fprintf(stderr, "TBDiff error '%s' in function '%s' at line %d " |