Skip to content

[gtkmm-4.0] toplevel.h compile error with DOUBLE_CLICK define from wincontypes.h #26850

@alvinhochun

Description

@alvinhochun

Description / Steps to reproduce the issue

  • Include windows.h before gtkmm/toplevel.h

or

  • Build master branch of Inkscape

Expected behavior

Build without error

Actual behavior

C:/msys64/ucrt64/include/gtkmm-4.0/gdkmm/toplevel.h:173:3: error: expected identifier before numeric constant
  173 |   DOUBLE_CLICK = 1,
      |   ^~~~~~~~~~~~
C:/msys64/ucrt64/include/gtkmm-4.0/gdkmm/toplevel.h:173:3: error: expected '}' before numeric constant
In file included from D:/dev/inkscape/inkscape-src/src/desktop.h:39,
                 from D:/dev/inkscape/inkscape-src/src/ui/widget/canvas.cpp:36:
C:/msys64/ucrt64/include/gtkmm-4.0/gdkmm/toplevel.h:172:1: note: to match this '{'
  172 | {
      | ^
C:/msys64/ucrt64/include/gtkmm-4.0/gdkmm/toplevel.h:173:3: error: expected unqualified-id before numeric constant
  173 |   DOUBLE_CLICK = 1,
      |   ^~~~~~~~~~~~
C:/msys64/ucrt64/include/gtkmm-4.0/gdkmm/toplevel.h:179:1: error: expected declaration before '}' token
  179 | } // namespace Gdk
      | ^

Verification

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANGARM64

Are you willing to submit a PR?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions