From 8a00a3280ee8fe625cd0590fdbc291b44745b20d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 3 Nov 2003 12:43:56 +0000 Subject: Allow GPG_ERR_INLINE to get overriden, so that one can use the -D flag to specify the inline keyword. Suggested by Philip Brown. --- ChangeLog | 6 ++++++ NEWS | 5 +++++ src/gpg-error.h | 2 ++ 3 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 44cb605..d16c505 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-11-03 Werner Koch + + * src/gpg-error.h: Allow GPG_ERR_INLINE to get overriden, so that + one can use the -D flag to specify the inline keyword. Suggested + by Philip Brown. + 2003-10-28 Moritz Schulte * src/gpg-error.h (gpg_err_code_t): Added: diff --git a/NEWS b/NEWS index 7b618a7..3f08d51 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,11 @@ Noteworthy changes in version 0.6 (unreleased) ---------------------------------------------- + * It is now possible to use the inline functions even for non C99 + compliant compilers by given e.g. -DGPG_ERR_INLINE=inline when + compiling an application using this library. Note, that gcc will + use inline anyway. + Noteworthy changes in version 0.5 (2003-10-06) ---------------------------------------------- diff --git a/src/gpg-error.h b/src/gpg-error.h index 74121bb..2491301 100644 --- a/src/gpg-error.h +++ b/src/gpg-error.h @@ -28,7 +28,9 @@ #elif __STDC_VERSION__ >= 199901L #define GPG_ERR_INLINE inline #else +#ifndef GPG_ERR_INLINE #define GPG_ERR_INLINE +#endif #endif /* The GnuPG project consists of many components. Error codes are -- cgit v1.2.3