summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2011-10-06 08:52:23 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2011-10-06 08:52:23 +0100
commitddf863c9d17fa4f9caee338dedff882315f32a6c (patch)
treec924a97d530b57f79c211443d1238dcd1de03dc6
parent0575841c499e85e46939bb0f472c8a68fa27b77c (diff)
downloadtbdiff-ddf863c9d17fa4f9caee338dedff882315f32a6c.tar.gz
Made the inline function more standard
-rw-r--r--Makefile1
-rw-r--r--tbdiff.h5
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1781b5f..5386d93 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,6 @@ DEPLOY=tbdiff-deploy
CREATE=tbdiff-create
CFLAGS ?=
-CFLAGS += -std=gnu99
CFLAGS += -g
CFLAGS += -Wall -Wextra -Werror -Wno-unused-result $(OPT)
diff --git a/tbdiff.h b/tbdiff.h
index ba14999..3949283 100644
--- a/tbdiff.h
+++ b/tbdiff.h
@@ -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 "