Fixes problems building latest source on Win32. Includes diffs for
ie_exp_HTML.cpp and a new file, ut_mkdir.h, to take care of differences
between unix & win versions of mkdir.
Index: wp/impexp/xp/ie_exp_HTML.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/impexp/xp/ie_exp_HTML.cpp,v
retrieving revision 1.90
diff -u -r1.90 ie_exp_HTML.cpp
--- wp/impexp/xp/ie_exp_HTML.cpp        2001/08/24 17:49:11     1.90
+++ wp/impexp/xp/ie_exp_HTML.cpp        2001/08/28 17:28:36
@@ -21,12 +21,12 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <fcntl.h>
-#include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 #include <locale.h>
 
+#include "ut_mkdir.h"
 #include "ut_string.h"
 #include "ut_bytebuf.h"
 #include "ut_base64.h"
@@ -1315,7 +1315,7 @@
                        }
                        else
                        {
-                               sBuf += *pData;
+                               sBuf += static_cast<char>(*pData);
                                pData++;
                        }
                        break;
@@ -1965,7 +1965,7 @@
                        char fname [1024]; // EVIL EVIL bad hardcoded buffer size
                        
                        sprintf(fname, "%s_d", m_pie->getFileName());
-                       int result = mkdir(fname, 0750);
+                       int result = UT_mkdir(fname, 0750);
                        
                        if (!UT_strcmp(szMimeType, "image/svg-xml"))
                                sprintf(fname, "%s/%d.svg", fname, loc);

ut_mkdir.h

Reply via email to