Skip to content

Commit d589c61

Browse files
committed
Fix windows.h include: remove WIN32_LEAN_AND_MEAN which breaks GLEW wingdi.h dependency
1 parent 7026f81 commit d589c61

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

dist/processing-cpp-cmake.zip

32 Bytes
Binary file not shown.
32 Bytes
Binary file not shown.

src/Processing.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
// Win32 APIs (FindFirstFileA, MessageBoxA, AllocConsole, Sleep, etc.).
1313
// <GL/glew.h> pulls it in transitively but only after GLEW's own includes --
1414
// explicit include here guarantees it arrives before any Win32 API usage.
15+
// NOTE: do NOT define WIN32_LEAN_AND_MEAN here -- GLEW needs wingdi.h which
16+
// WIN32_LEAN_AND_MEAN strips, causing GL type definition failures.
1517
#ifdef _WIN32
16-
# ifndef WIN32_LEAN_AND_MEAN
17-
# define WIN32_LEAN_AND_MEAN
18-
# endif
1918
# ifndef NOMINMAX
2019
# define NOMINMAX
2120
# endif

0 commit comments

Comments
 (0)