Skip to content

Commit

Permalink
Correct MSVC build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Register committed Feb 14, 2014
1 parent daecfc7 commit 902e6fc
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/tri.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ static int nrecurse;
# define inline static inline
#endif

#ifdef __MSVC__
DWORD filter(EXCEPTION_POINTERS * eps)
{
if (eps->ExceptionRecord->ExceptionCode == EXCEPTION_ACCESS_VIOLATION)
return EXCEPTION_EXECUTE_HANDLER;
return EXCEPTION_CONTINUE_SEARCH;
}

EXCEPTION_POINTERS * eps = 0;
#endif

#ifdef STANDALONE

Expand Down Expand Up @@ -1708,7 +1718,6 @@ static int triangulate_single_polygon(int nvert, int vcount, int posmax, int sid
register int v;
int ri = 0; /* reflex chain */
int endv, tmp, vpos;
int yyp;

if (side == TRI_RHS) /* RHS segment is a single segment */
{
Expand Down Expand Up @@ -4373,16 +4382,6 @@ int int_construct_trapezoids(int nseg)
}


#ifdef __MSVC__
DWORD filter(EXCEPTION_POINTERS * eps)
{
if (eps->ExceptionRecord->ExceptionCode == EXCEPTION_ACCESS_VIOLATION)
return EXCEPTION_EXECUTE_HANDLER;
return EXCEPTION_CONTINUE_SEARCH;
}

EXCEPTION_POINTERS * eps = 0;
#endif



Expand Down

0 comments on commit 902e6fc

Please sign in to comment.