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

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2020年 7月 5日 (日) 01:00:06 JST


Revision: 8837
          https://osdn.net/projects/ttssh2/scm/svn/commits/8837
Author:   zmatsuo
Date:     2020-07-05 01:00:05 +0900 (Sun, 05 Jul 2020)
Log Message:
-----------
MinGW でビルドエラーが出ていたので修正

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

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/ttxssh.c
    trunk/ttssh2/ttxssh/ttxssh.h

-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/ttxssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.c	2020-07-04 15:59:52 UTC (rev 8836)
+++ trunk/ttssh2/ttxssh/ttxssh.c	2020-07-04 16:00:05 UTC (rev 8837)
@@ -102,6 +102,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: trunk/ttssh2/ttxssh/ttxssh.h
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.h	2020-07-04 15:59:52 UTC (rev 8836)
+++ trunk/ttssh2/ttxssh/ttxssh.h	2020-07-04 16:00:05 UTC (rev 8837)
@@ -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