Skip to content

Needs windows.h #4638

@snibgo

Description

@snibgo

ImageMagick version

7.1.0-19

Operating system

Windows

Operating system, version and so on

Windows 8.1, with Cygwin toolchain

Description

I'm trying to build IM v7.1.0-19, on a Windows 8.1 laptop, with Cygwin.

One problem was that "make" failed at MagickCore/nt-feature.c with messages like:

warning: implicit declaration of function 'GetLogicalDrives'
error: unknown type name 'HKEY'
error: unknown type name 'LONG'
error: unknown type name 'DWORD'
error: 'KEY_READ' undeclared

An older version of IM, v7.0.8-64, in MagickCore/nt-feature.c, had the line "#include <windows.h>". That line seems to have been removed. Inserting that line into MagickCore/nt-feature.c fixes that problem.

Steps to Reproduce

Use Cygwin tools: automake, autoconf, ./configure, make.

Fails at "make".

Images

No images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions