<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>CMakeLists.txt</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -18,7 +18,9 @@ static char *g_version = &quot;1.4&quot;;
 
 #include &lt;ole2.h&gt;
 #include &lt;ocidl.h&gt;
+#ifndef NO_HTMLHELP
 #include &lt;htmlhelp.h&gt; // HtmlHelp
+#endif
 
 #include &lt;assert.h&gt;
 #include &lt;stdio.h&gt;
@@ -186,10 +188,15 @@ static int luacom_ShowHelp(lua_State *L)
     size_t len = strlen(pHelpFile);
     if (len &gt;= 4 &amp;&amp; _stricmp(pHelpFile + len - 4, &quot;.chm&quot;) == 0)
     {
+#ifdef NO_HTMLHELP
+      ::MessageBox(NULL, &quot;Error: HtmlHelp support not included&quot;,
+        &quot;LuaCOM&quot;, MB_ICONEXCLAMATION);
+#else
       if(context != 0)
         HtmlHelp(NULL, pHelpFile, HH_HELP_CONTEXT, context);
       else
         HtmlHelp(NULL, pHelpFile, HH_DISPLAY_TOC, 0);
+#endif
     }
     else
     {
@@ -2686,3 +2693,13 @@ LUACOM_API int luacom_detectAutomation(lua_State *L, int argc, char *argv[])
 
   return automation_result;
 }
+
+
+// preprocessor warnings
+#ifdef NO_HTMLHTML
+#ifdef _MSC_VER
+#pragma message(&quot;htmlhelp.h disabled&quot;)
+#else
+#warning(htmlhtlp.h disabled)
+#endif
+#endif</diff>
      <filename>src/library/luacom.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -20,6 +20,11 @@ static char *rcsname = &quot;$Name:  $&quot;;
 
 #include &quot;LuaCompat.h&quot;
 
+#if defined(__CYGWIN__) || defined(__MINGW32__)
+#include &lt;initguid.h&gt;
+DEFINE_GUID(IID_IProxyManager, 0x00000008, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46);
+#endif
+
 long tLuaCOM::NEXT_ID = 0;
 
 tLuaCOM::tLuaCOM(lua_State* L,</diff>
      <filename>src/library/tLuaCOM.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,6 @@ static char *rcsname = &quot;$Name:  $&quot;;
 
 
 #include &lt;ole2.h&gt;
-#include &lt;comdef.h&gt;
 
 extern &quot;C&quot;
 {
@@ -34,7 +33,6 @@ extern &quot;C&quot;
 
 #include &quot;luacom_internal.h&quot;
 
-
 #define LUA_NOOBJECT 0
 
 //////////////////////////////////////////////////////////////////////
@@ -295,7 +293,7 @@ void tLuaCOMTypeHandler::com2lua(lua_State* L, VARIANTARG varg_orig, bool is_var
             break;
           }
 
-          IUnknownPtr pProxMgr;
+          IUnknown* pProxMgr;
           ILuaDispatch *pLuaDispatch;
           if((pdisp-&gt;QueryInterface(IID_IProxyManager, (void**)&amp;pProxMgr)==E_NOINTERFACE) &amp;&amp;
               SUCCEEDED(pdisp-&gt;QueryInterface(IID_ILuaDispatch, (void**)&amp;pLuaDispatch)) &amp;&amp;
@@ -330,7 +328,7 @@ void tLuaCOMTypeHandler::com2lua(lua_State* L, VARIANTARG varg_orig, bool is_var
 
           if(SUCCEEDED(hr))
           {
-               IUnknownPtr pProxMgr;
+            IUnknown* pProxMgr;
             ILuaDispatch *pLuaDispatch;
             if((pdisp-&gt;QueryInterface(IID_IProxyManager, (void**)&amp;pProxMgr)==E_NOINTERFACE) &amp;&amp;
                 SUCCEEDED(pdisp-&gt;QueryInterface(IID_ILuaDispatch, (void**)&amp;pLuaDispatch)) &amp;&amp;</diff>
      <filename>src/library/tLuaCOMTypeHandler.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,8 @@ extern &quot;C&quot;
 #include &quot;LuaCompat.h&quot;
 }
 
-#ifdef __MINGW32__ // hack for MinGW
+// hacks for certain compilers
+#if defined(__MINGW32__) || defined(__CYGWIN__)
 #define GUIDKIND_DEFAULT_SOURCE_DISP_IID 1
 #endif
 </diff>
      <filename>src/library/tLuaDispatch.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -349,7 +349,7 @@ void tUtil::ShowHelp(const char *filename, unsigned long context)
       sprintf(context_param, &quot;-mapid %d&quot;, context);
     else
       context_param[0] = '\0';
-#if !defined(__WINE__) || defined(__MSVCRT__)
+#if !defined(__WINE__) &amp;&amp; !defined(__CYGWIN__)
     _spawnlp(_P_NOWAIT, &quot;hh.exe&quot;, &quot;hh.exe&quot;, context_param, filename, NULL);
 #else
     MessageBox(NULL, &quot;FIX - not implemented - _spawnlp&quot;, &quot;LuaCOM&quot;, MB_ICONEXCLAMATION);</diff>
      <filename>src/library/tUtil.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cf7ea2c9157bc4b9e5e892d938bf24b921f450b4</id>
    </parent>
  </parents>
  <author>
    <name>U-DC\david</name>
    <email>david@dc.(none)</email>
  </author>
  <url>http://github.com/davidm/luacom/commit/630f4e622742f5c068fbe75e32568fb510e75dbf</url>
  <id>630f4e622742f5c068fbe75e32568fb510e75dbf</id>
  <committed-date>2009-09-17T23:46:06-07:00</committed-date>
  <authored-date>2009-09-17T23:46:06-07:00</authored-date>
  <message>now at least compiles under cygwin/mingw; Add cmake CMakeLists.txt build file</message>
  <tree>c9bf37cf79aca6a168ad15ebaf454bb7d1646eff</tree>
  <committer>
    <name>U-DC\david</name>
    <email>david@dc.(none)</email>
  </committer>
</commit>
