Skip to content

Commit

Permalink
Try uintptr_t for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
m-clare committed Apr 26, 2024
1 parent e175756 commit b3fc6be
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions c/triangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,14 +340,7 @@

#define ONETHIRD 0.333333333333333333333333333333333333333333333333333333333333


/* Define the size large enough to store and operate on a pointer. */
#ifdef _WIN32
#define INT_PTR unsigned long long
#else
#define INT_PTR unsigned long
#endif

#include <stdint.h> // For uintptr_t
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand All @@ -366,6 +359,13 @@
#include "triangle.h"
#endif /* TRILIBRARY */

/* Define the size large enough to store and operate on a pointer. */
#ifdef _WIN32
#define INT_PTR uintptr_t
#else
#define INT_PTR unsigned long
#endif

/* A few forward declarations. */

#ifndef TRILIBRARY
Expand Down

0 comments on commit b3fc6be

Please sign in to comment.