Skip to content

Commit 811d89e

Browse files
committed
chore: version 0.3.4
1 parent 421b745 commit 811d89e

3 files changed

Lines changed: 9 additions & 2 deletions

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.4] - 2026-03-18
4+
5+
### Fixed
6+
- **`M_PI` still undeclared on MSVC in `test/main.cpp`**`#define _USE_MATH_DEFINES` + `#include <cmath>` were placed *after* `#include <gtest/gtest.h>`, which pulls in `<cmath>` transitively before the define was seen. Moved the define and `<cmath>` above the gtest include so MSVC exposes `M_PI` before the include-guard prevents a second parse.
7+
8+
---
9+
310
## [0.3.3] - 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.3)
3+
project(vector_math VERSION 0.3.4)
44

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

test/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#include <gtest/gtest.h>
21
#ifdef _WIN32
32
#define _USE_MATH_DEFINES
43
#endif
54
#include <cmath>
5+
#include <gtest/gtest.h>
66
#include <vector_math/vector_math.hpp>
77
#include <vector_math/vector2.hpp>
88

0 commit comments

Comments
 (0)