wx_BGI_Graphics
Classic BGI-compatible graphics API with modern OpenGL extension API
Loading...
Searching...
No Matches
openlb_msvc_compat.h File Reference

Minimal MSVC compatibility shims for OpenLB headers. More...

Go to the source code of this file.

Detailed Description

Minimal MSVC compatibility shims for OpenLB headers.

OpenLB uses POSIX/GCC built-ins and POSIX macros that are not available when compiling with the Microsoft Visual C++ compiler. This header provides the minimal set of definitions required to include OpenLB headers under MSVC without modifying the OpenLB source tree.

Include this header before any OpenLB header (e.g., before #include <olb.h>) when targeting MSVC.

Note
On non-MSVC compilers (GCC, Clang, AppleClang) this header expands to nothing; it is safe to include unconditionally.
Warning
Native MSVC + OpenLB builds are not fully supported upstream. OpenLB 1.6 and later still reference POSIX-only headers such as <unistd.h> that cannot be shimmed here. Linux/WSL remains the recommended build environment for OpenLB-coupled targets.