aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-08-26 06:46:17 +0000
committerWerner Koch <[email protected]>2015-08-26 06:46:17 +0000
commit030ee30c4ae85f2f41ca77651e4a7d7c9993e284 (patch)
tree21021ef092dd2cf3c872597c4db375d3493abcef
parentAdd macro GPGRT_INLINE and avoid -Wundef warnings (diff)
downloadlibgpg-error-030ee30c4ae85f2f41ca77651e4a7d7c9993e284.tar.gz
libgpg-error-030ee30c4ae85f2f41ca77651e4a7d7c9993e284.zip
Add new version macros.
* src/gpg-error.h.in (GPGRT_VERSION): New. (GPGRT_VERSION_NUMBER): New. (GPG_ERROR_VERSION, GPG_ERROR_VERSION_NUMBER): Move to top of file. -- Eventually we will have a gpgrt.h file instead of gpg-error. To make things easier we already provide suitable named version macros. Miving them to the top makes it easier to find the version. Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--src/gpg-error.h.in15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index 0bdb567..ad5d470 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -26,6 +26,15 @@
#include <stdio.h>
#include <stdarg.h>
+/* The version string of this header. */
+#define GPG_ERROR_VERSION @version@
+#define GPGRT_VERSION @version@
+
+/* The version number of this header. */
+#define GPG_ERROR_VERSION_NUMBER @version-number@
+#define GPGRT_VERSION_NUMBER @version-number@
+
+
#ifdef __GNUC__
# define GPG_ERR_INLINE __inline__
#elif defined(_MSC_VER) && _MSC_VER >= 1300
@@ -359,12 +368,6 @@ void gpg_err_set_errno (int err);
const char *gpgrt_check_version (const char *req_version);
const char *gpg_error_check_version (const char *req_version);
-/* The version string of this header. */
-#define GPG_ERROR_VERSION @version@
-
-/* The version number of this header. */
-#define GPG_ERROR_VERSION_NUMBER @version-number@
-
/* System specific type definitions. */
@define:gpgrt_ssize_t@
@define:gpgrt_off_t@