mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
In modern Windows code WIN32_LEAN_AND_MEAN should be defined. Without this define windows.h pulls in some legacy headers, notably winsocks.h. Modern code that cares about winsocks includes winsocks2.h which conflicts with winsocks.h. Other code that does not care about winsocks (OpenGL, fontconfig, ...) includes windows.h pulling in legacy winsocks.h, causing definition conflicts and build errors. At worst defining WIN32_LEAN_AND_MEAN requires explicitly including some additional headers on Windows.
This library contains base non-EDA items and extensions to libraries that are used throughout the KiCad codebase. This library should never depend on any parts of the KiCad code outside the thirdparty directory, since this is meant to be the lowest-level library in the dependency chain.