diff options
| author | realstealthninja <68815218+realstealthninja@users.noreply.github.com> | 2026-09-22 06:03:18 +0530 |
|---|---|---|
| committer | realstealthninja <68815218+realstealthninja@users.noreply.github.com> | 2026-09-22 06:10:35 +0530 |
| commit | 95bff801689dcb4e64e47113e227704d5b29cbc3 (patch) | |
| tree | fe28d4df1632df4dc9168717460565f077976951 | |
| parent | ccd92fca2f30e38e124743e18dd2b7d0b2edb168 (diff) | |
chore: define math defines first
| -rw-r--r-- | gunit_tests/drawTestBase.h | 1 | ||||
| -rw-r--r-- | gunit_tests/imageDraw.cpp | 1 | ||||
| -rw-r--r-- | gunit_tests/save_restore.cpp | 2 | ||||
| -rw-r--r-- | gunit_tests/unitTest.h | 2 |
4 files changed, 2 insertions, 4 deletions
diff --git a/gunit_tests/drawTestBase.h b/gunit_tests/drawTestBase.h index 350e08c..403449b 100644 --- a/gunit_tests/drawTestBase.h +++ b/gunit_tests/drawTestBase.h @@ -1,4 +1,5 @@ #pragma once +#define _USE_MATH_DEFINES #include <gtest/gtest.h> #include "vkvg.h" #include <filesystem> diff --git a/gunit_tests/imageDraw.cpp b/gunit_tests/imageDraw.cpp index 25b6f4d..a988f9d 100644 --- a/gunit_tests/imageDraw.cpp +++ b/gunit_tests/imageDraw.cpp @@ -1,5 +1,4 @@ #include "drawTestBase.h" -#define _USE_MATH_DEFINES #include <cmath> class ImageDrawTest : public DrawTestBase { diff --git a/gunit_tests/save_restore.cpp b/gunit_tests/save_restore.cpp index 46d99da..f82a208 100644 --- a/gunit_tests/save_restore.cpp +++ b/gunit_tests/save_restore.cpp @@ -1,6 +1,4 @@ #include "drawTestBase.h" - -#define _USE_MATH_DEFINES #include <cmath> class SaveRestoreTest : public DrawTestBase { diff --git a/gunit_tests/unitTest.h b/gunit_tests/unitTest.h index 9304f0b..a0b75cd 100644 --- a/gunit_tests/unitTest.h +++ b/gunit_tests/unitTest.h @@ -1,5 +1,5 @@ #pragma once - +#define _USE_MATH_DEFINES #include <cmath> #define CHECK_MAT(_xx, _yx, _xy, _yy, _x0, _y0) \ |