Skip to content

Commit

Permalink
Fix Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
balr0g committed Jun 26, 2015
1 parent 08bf75e commit 2c70a22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ Dependencies
Building the library
----------------------------------------------

On Windows, follow the instructions here to set up your environment:
http://rexdouglass.com/python-64-bit-on-windows-part-2-building-packages/

Then to create a wheel package, run the following command:
python setup.py bdist_wheel
This will create a .whl package in dist/ directory which can then be redistributed.

On Linux, you can do:
python setup.py build_ext -i

----------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions poly2tri/sweep/sweep.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#define _USE_MATH_DEFINES

#include "sweep.h"
#include "sweep_context.h"
#include "advancing_front.h"
#include "../common/utils.h"
#include <cstdio>
#include <cmath>
#include <exception>


Expand Down

0 comments on commit 2c70a22

Please sign in to comment.