*buffer;
/*
- Return if destination file already exists.
+ Copy source file to destination.
*/
assert(source != (const char *) NULL);
assert(destination != (char *) NULL);
- status=GetPathAttributes(destination,&attributes);
- if (status != MagickFalse)
- return(MagickTrue);
- /*
- Copy source file to destination.
- */
destination_file=open_utf8(destination,O_WRONLY | O_BINARY | O_CREAT,S_MODE);
if (destination_file == -1)
return(MagickFalse);
*/
#include "MagickCore/studio.h"
-#if defined(MAGICKCORE_WINGDI32_DELEGATE)
+#if defined(MAGICKCORE_WINGDI32_DELEGATE) && defined(__CYGWIN__)
+# define MAGICKCORE_EMF_DELEGATE
+#endif
+#if defined(MAGICKCORE_EMF_DELEGATE)
# if defined(__CYGWIN__)
# include <windows.h>
# else
# include <wingdi.h>
# endif
#endif
-\f
#include "MagickCore/blob.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/cache.h"
metafile, or an Aldus Placeable metafile and converts it into an enhanced
metafile. Width and height are returned in .01mm units.
*/
-#if defined(MAGICKCORE_WINGDI32_DELEGATE)
+#if defined(MAGICKCORE_EMF_DELEGATE)
static HENHMETAFILE ReadEnhMetaFile(const char *path,ssize_t *width,
ssize_t *height)
{
DeleteObject(hBitmap);
return(GetFirstImageInList(image));
}
-#endif /* MAGICKCORE_WINGDI32_DELEGATE */
+#endif /* MAGICKCORE_EMF_DELEGATE */
\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*entry;
entry=SetMagickInfo("EMF");
-#if defined(MAGICKCORE_WINGDI32_DELEGATE)
+#if defined(MAGICKCORE_EMF_DELEGATE)
entry->decoder=ReadEMFImage;
#endif
entry->description=ConstantString(
entry->module=ConstantString("WMF");
(void) RegisterMagickInfo(entry);
entry=SetMagickInfo("WMFWIN32");
-#if defined(MAGICKCORE_WINGDI32_DELEGATE)
+#if defined(MAGICKCORE_EMF_DELEGATE)
entry->decoder=ReadEMFImage;
#endif
entry->description=ConstantString("Windows WIN32 API rendered Meta File");