summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-01-07 15:20:49 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-01-07 15:20:49 (GMT)
commit14b5289e4aa4945dd080d1d3d2dad7f54537eec8 (patch)
tree8f683aa0cbf8062ba81931b49f3731abbccd0a8f /unix/tclUnixPort.h
parentbb09dba8c07eb42beccc0249f53dc2ca25bb01ed (diff)
parent49a7184962b241204447d10cb9546f514237c344 (diff)
downloadtcl-14b5289e4aa4945dd080d1d3d2dad7f54537eec8.zip
tcl-14b5289e4aa4945dd080d1d3d2dad7f54537eec8.tar.gz
tcl-14b5289e4aa4945dd080d1d3d2dad7f54537eec8.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r--unix/tclUnixPort.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index a86319c..4b79677 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -99,6 +99,10 @@ extern "C" {
# define SOCKET unsigned int
# define WSAEWOULDBLOCK 10035
typedef unsigned short WCHAR;
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wignored-attributes"
+#endif
__declspec(dllimport) extern __stdcall int GetModuleHandleExW(unsigned int, const void *, void *);
__declspec(dllimport) extern __stdcall int GetModuleFileNameW(void *, const void *, int);
__declspec(dllimport) extern __stdcall int WideCharToMultiByte(int, int, const void *, int,
@@ -106,12 +110,15 @@ extern "C" {
__declspec(dllimport) extern __stdcall int MultiByteToWideChar(int, int, const char *, int,
WCHAR *, int);
__declspec(dllimport) extern __stdcall void OutputDebugStringW(const WCHAR *);
- __declspec(dllimport) extern __stdcall int IsDebuggerPresent();
- __declspec(dllimport) extern __stdcall int GetLastError();
+ __declspec(dllimport) extern __stdcall int IsDebuggerPresent(void);
+ __declspec(dllimport) extern __stdcall int GetLastError(void);
__declspec(dllimport) extern __stdcall int GetFileAttributesW(const WCHAR *);
__declspec(dllimport) extern __stdcall int SetFileAttributesW(const WCHAR *, int);
__declspec(dllimport) extern int cygwin_conv_path(int, const void *, void *, int);
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
/* On Cygwin, the environment is imported from the Cygwin DLL. */
#ifndef __x86_64__
# define environ __cygwin_environ