[ttssh2-commit] [9611] includeのファイル指定を修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2021年 12月 20日 (月) 21:53:23 JST


Revision: 9611
          https://osdn.net/projects/ttssh2/scm/svn/commits/9611
Author:   zmatsuo
Date:     2021-12-20 21:53:23 +0900 (Mon, 20 Dec 2021)
Log Message:
-----------
includeのファイル指定を修正

- #include "initguid.h" -> #include <initguid.h>
- Visual Studio 2005 のときだけ GUID_DEVINTERFACE_USB_DEVICE を定義するようにした

Modified Paths:
--------------
    trunk/teraterm/teraterm/vtwin.cpp

-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2021-12-20 12:53:06 UTC (rev 9610)
+++ trunk/teraterm/teraterm/vtwin.cpp	2021-12-20 12:53:23 UTC (rev 9611)
@@ -105,10 +105,14 @@
 #include "teraprn.h"
 #include "setupdirdlg.h"
 
-#include "initguid.h"
-//#include "Usbiodef.h"
+#include <initguid.h>
+#if _MSC_VER == 1400  // Visual Studio 2005(VC8.0)
 DEFINE_GUID(GUID_DEVINTERFACE_USB_DEVICE, 0xA5DCBF10L, 0x6530, 0x11D2, 0x90, 0x1F, 0x00, \
              0xC0, 0x4F, 0xB9, 0x51, 0xED);
+#else
+#include <usbiodef.h>	// GUID_DEVINTERFACE_USB_DEVICE
+#endif
+
 #include "win32helper.h"
 
 #define VTClassName L"VTWin32"


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