Skip to content

Commit 9d923f6

Browse files
authored
Merge branch 'OneLoneCoder:main' into main
2 parents b061d70 + 7cc5fff commit 9d923f6

File tree

3 files changed

+538
-170
lines changed

3 files changed

+538
-170
lines changed

TEST_Geometry2D.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#define OLC_PGE_APPLICATION
2-
#define OLC_IGNORE_VEC2D
3-
42
#include "olcUTIL_Geometry2D.h"
53
#include "third_party/olcPixelGameEngine.h"
64

olcUTIL_Geometry2D.h

+2-7
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,8 @@
197197
#error "olcUTIL_Geometry2D.h must be included BEFORE olcPixelGameEngine.h"
198198
#else
199199

200-
#ifndef OLC_IGNORE_VEC2D
201-
#define OLC_IGNORE_VEC2D
202-
#endif
203200

204-
#ifndef OLC_V2D_TYPE
205-
#define OLC_V2D_TYPE
201+
#if !defined(OLC_VECTOR2D_DEFINED)
206202
namespace olc
207203
{
208204
/*
@@ -508,8 +504,7 @@ namespace olc
508504
typedef v_2d<float> vf2d;
509505
typedef v_2d<double> vd2d;
510506
}
511-
#else
512-
#include "olcPixelGameEngine.h"
507+
#define OLC_VECTOR2D_DEFINED 1
513508
#endif
514509

515510

0 commit comments

Comments
 (0)