summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-08-07 09:36:01 -0700
committerAndres Freund <andres@anarazel.de>2022-08-07 09:36:01 -0700
commit320f92b744b44f961e5d56f5f21de003e8027a7f (patch)
tree27ddd145bc88ec953aea588acf387dbcdecd408e /src/include/c.h
parentafe58c8b746cac1e2c3e9f0fc96a0f69a46c84d3 (diff)
downloadpostgresql-320f92b744b44f961e5d56f5f21de003e8027a7f.tar.gz
Rely on __func__ being supported
Previously we fell back to __FUNCTION__ and then NULL. As __func__ is in C99 that shouldn't be necessary anymore. Solution.pm defined HAVE_FUNCNAME__FUNCTION instead of HAVE_FUNCNAME__FUNC (originating in 4164e6636e2), as at some point in the past MSVC only supported __FUNCTION__. Our minimum version supports __func__. Reviewed-By: Thomas Munro <thomas.munro@gmail.com> Discussion: https://postgr.es/m/20220807012914.ydz73yte6j3coulo@awork3.anarazel.de
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 8c4baeb0ec..de9ec04d49 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -360,17 +360,6 @@ typedef void (*pg_funcptr_t) (void);
*/
#define FLEXIBLE_ARRAY_MEMBER /* empty */
-/* Which __func__ symbol do we have, if any? */
-#ifdef HAVE_FUNCNAME__FUNC
-#define PG_FUNCNAME_MACRO __func__
-#else
-#ifdef HAVE_FUNCNAME__FUNCTION
-#define PG_FUNCNAME_MACRO __FUNCTION__
-#else
-#define PG_FUNCNAME_MACRO NULL
-#endif
-#endif
-
/* ----------------------------------------------------------------
* Section 2: bool, true, false