[Ttssh2-commit] [7479] wspiapi.h を include した

scmno****@osdn***** scmno****@osdn*****
2019年 3月 14日 (木) 00:32:18 JST


Revision: 7479
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7479
Author:   zmatsuo
Date:     2019-03-14 00:32:17 +0900 (Thu, 14 Mar 2019)
Log Message:
-----------
wspiapi.h を include した
ws2_32.dll関連でエラーが出ないバイナリがビルドできるようになった
従来は _WIN32_WINNT のdefine具合よってWindows95でエラーが出るバイナリとなっていた

Modified Paths:
--------------
    trunk/teraterm/teraterm/WSAAsyncGetAddrInfo.c
    trunk/teraterm/teraterm/ttwsk.c
    trunk/ttssh2/ttxssh/ttxssh.h

-------------- next part --------------
Modified: trunk/teraterm/teraterm/WSAAsyncGetAddrInfo.c
===================================================================
--- trunk/teraterm/teraterm/WSAAsyncGetAddrInfo.c	2019-03-13 03:14:05 UTC (rev 7478)
+++ trunk/teraterm/teraterm/WSAAsyncGetAddrInfo.c	2019-03-13 15:32:17 UTC (rev 7479)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2017 TeraTerm Project
+ * Copyright (C) 2010-2019 TeraTerm Project
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -31,9 +31,10 @@
  */
 #include <winsock2.h>
 #include <ws2tcpip.h>
+#include <wspiapi.h>
 #include <windows.h>
 #include <process.h>
-#include "WSAASyncGetAddrInfo.h"
+#include "WSAAsyncGetAddrInfo.h"
 #include "ttwsk.h"
 
 static unsigned __stdcall getaddrinfo_thread(void * p);

Modified: trunk/teraterm/teraterm/ttwsk.c
===================================================================
--- trunk/teraterm/teraterm/ttwsk.c	2019-03-13 03:14:05 UTC (rev 7478)
+++ trunk/teraterm/teraterm/ttwsk.c	2019-03-13 15:32:17 UTC (rev 7479)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 1994-1998 T. Teranishi
- * (C) 2007-2017 TeraTerm Project
+ * (C) 2007-2019 TeraTerm Project
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -31,6 +31,7 @@
 
 #include "teraterm.h"
 #include "ttwsk.h"
+#include <wspiapi.h>
 #include "WSAAsyncGetAddrInfo.h"
 
 static HANDLE HWinsock = NULL;

Modified: trunk/ttssh2/ttxssh/ttxssh.h
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.h	2019-03-13 03:14:05 UTC (rev 7478)
+++ trunk/ttssh2/ttxssh/ttxssh.h	2019-03-13 15:32:17 UTC (rev 7479)
@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 1998-2001, Robert O'Callahan
- * (C) 2004-2017 TeraTerm Project
+ * (C) 2004-2019 TeraTerm Project
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -49,6 +49,7 @@
 
 #include <winsock2.h>
 #include <ws2tcpip.h>
+#include <wspiapi.h>
 /* actual body of in6addr_any and in6addr_loopback is disappeared?? */
 #undef IN6_IS_ADDR_LOOPBACK
 #define IN6_IS_ADDR_LOOPBACK(a)         \


Ttssh2-commit メーリングリストの案内