Skip to content
This repository was archived by the owner on Aug 9, 2024. It is now read-only.

Commit 068c78a

Browse files
committed
Remove DEBUG flag, add _USE_MATH_DEFINES
1 parent 5b183d9 commit 068c78a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

gdspy/clipper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
* *
3939
*******************************************************************************/
4040

41-
// Begin of GDSPY additional headers
41+
// Begin of GDSPY additions
42+
#define _USE_MATH_DEFINES
4243
#include <Python.h>
43-
#define DEBUG 1
4444
#ifdef DEBUG
4545
#include <iostream>
4646
#endif //DEBUG
47-
// End of GDSPY additional headers
47+
// End of GDSPY additions
4848

4949
#include "clipper.hpp"
5050
#include <cmath>

gdspy/clipper.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
//use_deprecated: Enables temporary support for the obsolete functions
5050
//#define use_deprecated
5151

52+
// Begin of GDSPY additions
53+
#define _USE_MATH_DEFINES
54+
// End of GDSPY additions
55+
5256
#include <vector>
5357
#include <list>
5458
#include <set>

0 commit comments

Comments
 (0)