Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 862
    • Issues 862
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 41
    • Merge requests 41
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !980

gmacros.h: Add better support for clang-cl

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Chun-wei Fan requested to merge gmacros-h-support-clang-cl into master Jul 10, 2019
  • Overview 8
  • Commits 2
  • Pipelines 1
  • Changes 1

Hi,

This is split out from MR !979 (merged) as it looks like this can land first without needing the build support, which will actually need to depend on a fix in Meson, as per @nirbheek's suggestions there. The updates here will make things more usable for clang-cl builds against (real) MSVC builds of the GTK stack using the GLib headers, notably to improve deprecation warning support and to enable g_autoptr support.

The rationale behind this is that

  • clang-cl will (understandably) define _MSC_VER

  • clang-cl will (understandably) not define __GNUC__

This, as a result, will also make MR !979 (merged) depend on this MR.

With blessings, thank you!

Edited Mar 19, 2021 by Philip Withnall
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: gmacros-h-support-clang-cl