From adc3341bccc8b0ff25b4ffe03ffaedcebf110430 Mon Sep 17 00:00:00 2001 From: Martin Burnicki Date: Tue, 6 Jan 2015 14:29:51 +0100 Subject: [PATCH] [Bug 2695] Windows build: __func__ not supported under Windows. bk: 54abe34f2He13n7h0B29Jh6Mz8xbRw --- ChangeLog | 1 + ports/winnt/include/config.h | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cadb66cc0..5274ed5cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 2695] Windows build: __func__ not supported under Windows. --- (4.2.8p1-beta4) 2015/01/04 Released by Harlan Stenn diff --git a/ports/winnt/include/config.h b/ports/winnt/include/config.h index 4b531c7a2..d5c8b5f22 100644 --- a/ports/winnt/include/config.h +++ b/ports/winnt/include/config.h @@ -300,9 +300,13 @@ typedef int socklen_t; #define getpid _getpid #define timegm _mkgmtime #define errno_to_str isc__strerror +/* + * symbol returning the name of the current function + */ +#define __func__ __FUNCTION__ typedef int pid_t; /* PID is an int */ -typedef int ssize_t; /* ssize is an int */ +typedef int ssize_t; /* ssize is an int */ /* * Map the stream to the file number -- 2.47.3