mirror of
https://github.com/bkaradzic/bx.git
synced 2026-07-23 14:38:53 +00:00
master
Two related Windows fixes: * BX_ARCH_64BIT missed MSVC's _M_ARM64 / _M_ARM64EC, so Windows on ARM64 was treated as a 32-bit architecture. Add them to the 64-bit detection list. * The 32-bit Windows branch defaulted WINVER / _WIN32_WINNT to 0x0502 (Windows XP / Server 2003), which predates APIs that modern SDK headers reference (e.g. the ETW EventRegister/EventWriteTransfer family, only declared for _WIN32_WINNT >= 0x0600). Raise it to 0x0601 (Windows 7), matching the 64-bit branch. Combined with the ARM64 detection fix, x86, x64 and ARM64 Windows targets now all default to a Windows 7 baseline. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 45aaf3cc-900d-442b-a7e5-0fb6d3fe6658
bx
Base X-platform library.
Goals:
- Provide OS/runtime/compiler independent core functionality to be able to write cross-platform applications.
- Compile without C Runtime (CRT) and without C++ Standard Library (STL).
Contact
Project page
https://github.com/bkaradzic/bx
License (BSD 2-clause)
Copyright 2010-2026 Branimir Karadzic
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
Description
Languages
C++
92.7%
C
5%
Lua
2.3%