aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-11-03 12:43:56 +0000
committerWerner Koch <[email protected]>2003-11-03 12:43:56 +0000
commit8a00a3280ee8fe625cd0590fdbc291b44745b20d (patch)
tree60569c706a6770747d0ad713587a16834b2f477f
parent2003-10-28 Moritz Schulte <[email protected]> (diff)
downloadlibgpg-error-8a00a3280ee8fe625cd0590fdbc291b44745b20d.tar.gz
libgpg-error-8a00a3280ee8fe625cd0590fdbc291b44745b20d.zip
Allow GPG_ERR_INLINE to get overriden, so that
one can use the -D flag to specify the inline keyword. Suggested by Philip Brown.
-rw-r--r--ChangeLog6
-rw-r--r--NEWS5
-rw-r--r--src/gpg-error.h2
3 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 44cb605..d16c505 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-11-03 Werner Koch <[email protected]>
+
+ * 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 <[email protected]>
* 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