]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2695] Windows build: __func__ not supported under Windows.
authorMartin Burnicki <burnicki@ntp.org>
Tue, 6 Jan 2015 13:29:51 +0000 (14:29 +0100)
committerMartin Burnicki <burnicki@ntp.org>
Tue, 6 Jan 2015 13:29:51 +0000 (14:29 +0100)
bk: 54abe34f2He13n7h0B29Jh6Mz8xbRw

ChangeLog
ports/winnt/include/config.h

index cadb66cc03f839b8e617bf6c366de02fd4aeee6c..5274ed5cc9141caa71604f7d6cfe07826980de85 100644 (file)
--- 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 <stenn@ntp.org>
 
index 4b531c7a2f47f0b18fb5196c4a15375c074eecf4..d5c8b5f224c91ae4cbc5e40e05167458a863b2be 100644 (file)
@@ -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