Skip to content

Commit

Permalink
add #include <cstdlib> to some header files becuase newer gcc version…
Browse files Browse the repository at this point in the history
… dont automaticvally define NULL (moving to C++11, which use 'nullptr' instead)
  • Loading branch information
hansent committed Sep 25, 2012
1 parent 7835a98 commit a816445
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions poly2tri/sweep/sweep.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@
#ifndef SWEEP_H
#define SWEEP_H

#include <cstdlib>
#include <vector>



namespace p2t {

class SweepContext;
Expand Down
4 changes: 3 additions & 1 deletion poly2tri/sweep/sweep_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
#ifndef SWEEP_CONTEXT_H
#define SWEEP_CONTEXT_H

#include <cstdlib>
#include <list>
#include <vector>


namespace p2t {

// Inital triangle factor, seed triangle will extend 30% of
Expand Down Expand Up @@ -91,7 +93,7 @@ AdvancingFront* front();
void MeshClean(Triangle& triangle);

std::vector<Triangle*> GetTriangles();
std::list<Triangle*> GetMap();
std::list<Triangle*> GetMap();

std::vector<Edge*> edge_list;

Expand Down

0 comments on commit a816445

Please sign in to comment.