[Ttssh2-commit] [9110] MinGW でビルドエラーが出ていたので修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2020年 12月 21日 (月) 01:32:31 JST


Revision: 9110
          https://osdn.net/projects/ttssh2/scm/svn/commits/9110
Author:   zmatsuo
Date:     2020-12-21 01:32:30 +0900 (Mon, 21 Dec 2020)
Log Message:
-----------
MinGW でビルドエラーが出ていたので修正

- グローバル変数
  - .h に extern
  - .c に実体

MFT: r8837

Revision Links:
--------------
    https://osdn.net/projects/ttssh2/scm/svn/commits/8837

Modified Paths:
--------------
    branches/4-stable/ttssh2/ttxssh/ttxssh.c
    branches/4-stable/ttssh2/ttxssh/ttxssh.h

-------------- next part --------------
Modified: branches/4-stable/ttssh2/ttxssh/ttxssh.c
===================================================================
--- branches/4-stable/ttssh2/ttxssh/ttxssh.c	2020-12-20 16:32:19 UTC (rev 9109)
+++ branches/4-stable/ttssh2/ttxssh/ttxssh.c	2020-12-20 16:32:30 UTC (rev 9110)
@@ -101,6 +101,8 @@
    "protocols" range. */
 #define ORDER 2500
 
+HANDLE hInst; /* Instance handle of TTXSSH.DLL */
+
 static HICON SecureLargeIcon = NULL;
 static HICON SecureSmallIcon = NULL;
 static HICON SecureNotifyIcon = NULL;

Modified: branches/4-stable/ttssh2/ttxssh/ttxssh.h
===================================================================
--- branches/4-stable/ttssh2/ttxssh/ttxssh.h	2020-12-20 16:32:19 UTC (rev 9109)
+++ branches/4-stable/ttssh2/ttxssh/ttxssh.h	2020-12-20 16:32:30 UTC (rev 9110)
@@ -95,7 +95,7 @@
 #define _Printf_format_string_
 #endif
 
-HANDLE hInst; /* Instance handle of TTXSSH.DLL */
+extern HANDLE hInst; /* Instance handle of TTXSSH.DLL */
 
 #define ID_SSHSCPMENU       52110
 #define ID_SSHSETUPMENU     52310


Ttssh2-commit メーリングリストの案内
Back to archive index