applied Benjamin Riefenstahl's patches for building on Windows
This commit is contained in:
@@ -43,12 +43,10 @@
|
||||
#include <sys/types.h>
|
||||
#include <assert.h>
|
||||
|
||||
#if !(defined( __BORLANDC__ ) || defined( __WIN32__ ))
|
||||
#include "cole.h"
|
||||
#include "config.h"
|
||||
#if !defined(WIN32)
|
||||
#include <unistd.h> /* for unlink() */
|
||||
#else
|
||||
#include "cole.h.in"
|
||||
#endif
|
||||
/* FIXME: replace all VERBOSE with COLE_VERBOSE */
|
||||
#ifdef COLE_VERBOSE
|
||||
@@ -475,7 +473,7 @@ int __OLEdecode (char *OLEfilename, pps_entry ** stream_list, U32 * root,
|
||||
test_exitf (OLEfile != NULL, 7, ends ());
|
||||
verboseS (sbfilename);
|
||||
*/
|
||||
#if defined( __WIN32__ ) || defined( __BORLANDC__ )
|
||||
#if defined(WIN32)
|
||||
*_sbfilename = (U8 *)malloc (TMPNAM_LEN);
|
||||
test_exitf (*_sbfilename != NULL, 10, ends ());
|
||||
tmpnam (*_sbfilename);
|
||||
@@ -508,7 +506,7 @@ int __OLEdecode (char *OLEfilename, pps_entry ** stream_list, U32 * root,
|
||||
/* other entry, save in a file */
|
||||
{
|
||||
/* this branch is never executed now */
|
||||
#if defined( __WIN32__ ) || defined( __BORLANDC__ )
|
||||
#if defined(WIN32)
|
||||
tmpnam (pps_list[i].filename);
|
||||
test_exitf (pps_list[i].filename[0], 7, ends ());
|
||||
verbose(pps_list[i].name + (!isprint(pps_list[i].name[0]) ? 1 : 0));
|
||||
|
Reference in New Issue
Block a user