msvc >= VC7 understands __FUNCTION__ - Mailing list pgsql-hackers

From Hannes Eder
Subject msvc >= VC7 understands __FUNCTION__
Date
Msg-id 46FD6765.2020709@HannesEder.net
Whole thread Raw
Responses Re: msvc >= VC7 understands __FUNCTION__
List pgsql-hackers
Hi,

Starting from version VC7 msvc supports __FUNCTION__, so I think this
could be enabled in pg_config.h.win32, see attached diff.

-Hannes




*** ../pgsql-cvshead/src/include/pg_config.h.win32    Mon Apr 16 20:39:19 2007
--- src/include/pg_config.h.win32    Fri Sep 28 22:32:50 2007
***************
*** 4,12 ****
  /* This file is generated from MingW ./configure, and with the following
   * changes to be valid for Visual C++ (and compatible):
   *
!  * HAVE_CBRT, HAVE_FUNCNAME_FUNC, HAVE_FUNCNAME_FUNCTION, HAVE_GETOPT,
!  * HAVE_GETOPT_H, HAVE_GETOPT_LONG, HAVE_RINT, HAVE_STRINGS_H,
!  * HAVE_STRTOLL, HAVE_STRTOULL, HAVE_STRUCT_OPTION, ENABLE_THREAD_SAFETY
   *
   */

--- 4,12 ----
  /* This file is generated from MingW ./configure, and with the following
   * changes to be valid for Visual C++ (and compatible):
   *
!  * HAVE_CBRT, HAVE_FUNCNAME_FUNC, HAVE_GETOPT, HAVE_GETOPT_H,
!  * HAVE_GETOPT_LONG, HAVE_RINT, HAVE_STRINGS_H, HAVE_STRTOLL,
!  * HAVE_STRTOULL, HAVE_STRUCT_OPTION, ENABLE_THREAD_SAFETY
   *
   */

***************
*** 134,140 ****
  //#define HAVE_FUNCNAME__FUNC 1

  /* Define to 1 if your compiler understands __FUNCTION__. */
! #undef HAVE_FUNCNAME__FUNCTION

  /* Define to 1 if you have getaddrinfo(). */
  /* #undef HAVE_GETADDRINFO */
--- 134,140 ----
  //#define HAVE_FUNCNAME__FUNC 1

  /* Define to 1 if your compiler understands __FUNCTION__. */
! #define HAVE_FUNCNAME__FUNCTION 1

  /* Define to 1 if you have getaddrinfo(). */
  /* #undef HAVE_GETADDRINFO */

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Enforcing database encoding and locale match
Next
From: Simon Riggs
Date:
Subject: Re: Getting to 8.3 beta1