aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am9
-rw-r--r--src/gpg-error.h.in5
2 files changed, 10 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 06ba1cd..4c77521 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -80,7 +80,7 @@ lock_obj_pub = \
lib_LTLIBRARIES = libgpg-error.la
-nodist_include_HEADERS = gpg-error.h
+nodist_include_HEADERS = gpg-error.h gpgrt.h
bin_SCRIPTS = gpg-error-config
m4datadir = $(datadir)/aclocal
m4data_DATA = gpg-error.m4
@@ -95,13 +95,14 @@ EXTRA_DIST = mkstrtable.awk err-sources.h.in err-codes.h.in \
$(lock_obj_pub)
BUILT_SOURCES = err-sources.h err-codes.h code-to-errno.h code-from-errno.h \
- err-sources-sym.h err-codes-sym.h errnos-sym.h gpg-error.h \
+ err-sources-sym.h err-codes-sym.h errnos-sym.h gpg-error.h gpgrt.h \
gpg-error.def mkw32errmap.map.c
tmp_files = _mkerrcodes.h _gpg-error.def.h mkw32errmap.tab.h mkw32errmap.map.c
CLEANFILES = err-sources.h err-codes.h code-to-errno.h code-from-errno.h \
- gpg-error.h mkerrcodes mkerrcodes.h gpg-error.def mkw32errmap.tab.h \
+ gpg-error.h gpgrt.h \
+ mkerrcodes mkerrcodes.h gpg-error.def mkw32errmap.tab.h \
mkw32errmap.map.c err-sources-sym.h err-codes-sym.h errnos-sym.h \
gpg-extra/errno.h mkheader $(tmp_files) lock-obj-pub.native.h
@@ -305,6 +306,8 @@ gpg-error.h: Makefile mkheader $(parts_of_gpg_error_h) \
./mkheader $(host_os) $(host_triplet) $(srcdir)/gpg-error.h.in \
../config.h $(PACKAGE_VERSION) $(VERSION_NUMBER) >$@
+gpgrt.h: gpg-error.h
+ cp gpg-error.h gpgrt.h
install-data-local:
if HAVE_W32CE_SYSTEM
diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index 19bdeed..4c7ac45 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -1,4 +1,4 @@
-/* gpg-error.h - Public interface to libgpg-error. -*- c -*-
+/* gpg-error.h or gpgrt.h - Public interface to libgpg-error. -*- c -*-
* Copyright (C) 2003, 2004, 2010, 2013, 2014, 2015, 2016 g10 Code GmbH
*
* This file is part of libgpg-error.
@@ -21,6 +21,8 @@
#ifndef GPG_ERROR_H
#define GPG_ERROR_H 1
+#ifndef GPGRT_H
+#define GPGRT_H 1
#include <stddef.h>
#include <stdio.h>
@@ -867,4 +869,5 @@ gpg_error_t gpgrt_b64dec_finish (gpgrt_b64state_t state);
#ifdef __cplusplus
}
#endif
+#endif /* GPGRT_H */
#endif /* GPG_ERROR_H */