From a31b66b8b7ef460382be06406f8aae9aafca3c01 Mon Sep 17 00:00:00 2001 From: Emil Rosenquist <37864286+EmilRosenquist@users.noreply.github.com> Date: Thu, 1 Sep 2022 10:12:44 +0200 Subject: [PATCH] Add HAVE___func__ and HAVE___FUNCTION__ (GH PR #27) --- .../libbuild2/autoconf/checks/HAVE___FUNCTION__.h | 10 ++++++++++ .../libbuild2/autoconf/checks/HAVE___func__.h | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE___FUNCTION__.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE___func__.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE___FUNCTION__.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE___FUNCTION__.h new file mode 100644 index 0000000..03d68a6 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE___FUNCTION__.h @@ -0,0 +1,10 @@ +// HAVE___FUNCTION__ + +#undef HAVE___FUNCTION__ + +/* HAVE___FUNCTION__ + * __FUNCTION__ is another name for __func__, provided for backward + * compatibility with old versions of GCC. + * Although it is seemingly available everywhere else. + */ +#define HAVE___FUNCTION__ 1 diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE___func__.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE___func__.h new file mode 100644 index 0000000..0f65495 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE___func__.h @@ -0,0 +1,10 @@ +// HAVE___func__ + +#undef HAVE___func__ + +/* HAVE___func__ + * __func__ was added to the standard in C99 and C++11. But seemingly exists + * almost everywhere before that as well. + */ + +#define HAVE___func__ 1