msvc >= VC7 understands __FUNCTION__

Started by Hannes Ederover 18 years ago2 messages
#1Hannes Eder
Hannes@HannesEder.net
1 attachment(s)

Hi,

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

-Hannes

Attachments:

pg_config.h.win32-200709281.difftext/x-diff; name=pg_config.h.win32-200709281.diffDownload
*** ../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 */
#2Magnus Hagander
magnus@hagander.net
In reply to: Hannes Eder (#1)
Re: msvc >= VC7 understands __FUNCTION__

On Fri, Sep 28, 2007 at 10:43:17PM +0200, Hannes Eder wrote:

Hi,

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

Applied, thanks.

//Magnus