Skip to content

Commit 421b745

Browse files
committed
chore: version 0.3.3
1 parent bd8afa6 commit 421b745

4 files changed

Lines changed: 14 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.3.3] - 2026-03-18
4+
5+
### Fixed
6+
- **`_USE_MATH_DEFINES` propagated to library headers**`common.hpp` and `vec.hpp` now define `_USE_MATH_DEFINES` before `<cmath>` under `_WIN32`, so any consumer compiling on MSVC gets `M_PI` and other POSIX math constants without needing to set the macro themselves. Previously this guard was only applied in `test/main.cpp`.
7+
8+
---
9+
310
## [0.3.2] - 2026-03-18
411

512
### Fixed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.22.1)
22

3-
project(vector_math VERSION 0.3.2)
3+
project(vector_math VERSION 0.3.3)
44

55
configure_file(src/vector_math_config.h.in vector_math_config.h)
66

inc/vector_math/common.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#pragma once
22

33
#include <limits>
4+
#ifdef _WIN32
5+
#define _USE_MATH_DEFINES
6+
#endif
47
#include <cmath>
58

69
/// @defgroup arch Architecture Detection

inc/vector_math/vec.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#pragma once
22

3+
#ifdef _WIN32
4+
#define _USE_MATH_DEFINES
5+
#endif
36
#include <cmath>
47
#include <stdint.h>
58
#include <cstdlib>

0 commit comments

Comments
 (0)