Skip to content
This repository was archived by the owner on Apr 27, 2022. It is now read-only.

Commit a3e9910

Browse files
committed
Fix for VS stdint
1 parent f19d6e4 commit a3e9910

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

agg_regrid/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from ._agg import raster as agg_raster
3333

3434

35-
__version__ = '0.3.dev0'
35+
__version__ = '0.2.1'
3636

3737

3838
class AreaWeighted(object):

agg_regrid/_agg_raster.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,19 @@
2020
#ifndef _AGG_RASTER_H
2121
#define _AGG_RASTER_H
2222

23-
#include <stdint.h>
23+
#ifdef _MSC_VER
24+
#ifndef _MSC_STDINT_H_
25+
#if _MSC_VER < 1300
26+
typedef unsigned char uint8_t;
27+
typedef unsigned int uint32_t;
28+
#else
29+
typedef unsigned __int8 uint8_t;
30+
typedef unsigned __int32 uint32_t;
31+
#endif
32+
#endif
33+
#else
34+
#include <stdint.h>
35+
#endif
2436

2537

2638
void _raster(uint8_t *weights, const double *xi, const double *yi,

0 commit comments

Comments
 (0)