Skip to content

Commit

Permalink
handle uint64_t redefinition error on Windows (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmckenna committed May 16, 2024
1 parent add35ac commit ff061b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions lib/imageio_png.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
#include <apr_strings.h>

#ifdef _WIN32
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long int uint64_t;
#include <stdint.h>
#endif

#ifndef Z_BEST_SPEED
Expand Down
5 changes: 1 addition & 4 deletions lib/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@
#endif

#ifdef _WIN32
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long int uint64_t;
#include <stdint.h>
#endif

const double mapcache_meters_per_unit[MAPCACHE_UNITS_COUNT] = {1.0,6378137.0 * 2.0 * M_PI / 360,0.3048};
Expand Down

0 comments on commit ff061b5

Please sign in to comment.