diff options
| author | 2024-03-05 23:22:13 +0000 | |
|---|---|---|
| committer | 2024-03-06 04:48:27 +0000 | |
| commit | afdffd86390da2e05a2b64c5bdc102b2dd9411c5 (patch) | |
| tree | 554fd49f0f4f01f5cfcc661892376d15ca7214bc /libs/ultrahdr/jpegencoderhelper.cpp | |
| parent | 1a0675170270fe07d5bd5f1e4a30887758046acc (diff) | |
Undefine 'near' and 'far' in mat4.h for host Windows
Previously, when a C++ file included 'windows.h' and subsequently
included 'mat4.h', a compile error occurred. This is because, for some
esoteric/obsolete reasons, 'windows.h' includes empty definitions of
'near' and 'far'. These conflict with the usage of 'near' and 'far' in
'mat4.h'.
Add some logic to 'mat4.h' for host Windows that undefines 'near' and
'far' to avoid these conflicts.
Test: Build libandroid_runtime on Windows
Bug: 328307399
Change-Id: I13d068e7f800cf370a0f7d9f1b98479f9c6aeb35
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions