[GRASS-git] [OSGeo/grass] e8996b: lib/ogsf: Fix compilation with MSVC (#8068)
Jean Felder
noreply at github.com
Wed Oct 14 14:56:44 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: e8996b738fe9acc7d73f41e0918ba63c94e5c86b
https://github.com/OSGeo/grass/commit/e8996b738fe9acc7d73f41e0918ba63c94e5c86b
Author: Jean Felder <jean.felder at gmail.com>
Date: 2026-10-14 (Wed, 14 Oct 2026)
Changed paths:
M include/grass/ogsf.h
M lib/ogsf/gs2.c
M lib/ogsf/gsd_legend.c
M lib/ogsf/gsd_prim.c
M lib/ogsf/gsd_views.c
Log Message:
-----------
lib/ogsf: Fix compilation with MSVC (#8068)
Include `windows.h` before `GL/gl.h`. This fixes compilation with
MSVC. Indeed, with MSVC, `GL/gl.h` relies on macros being defined by
`windows.h`.
For example:
```
GL/gl.h(1157): error C2054: expected '(' to follow 'WINGDIAPI'
```
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list