[trunk] Fix compilation in visual studio, inline cannot be used directly.

Fixes issue 272
This commit is contained in:
Mathieu Malaterre 2014-03-07 09:15:27 +00:00
parent 99b40e8257
commit 016b9fc052
1 changed files with 7 additions and 1 deletions

View File

@ -1419,7 +1419,13 @@ opj_image_t* pgxtoimage(const char *filename, opj_cparameters_t *parameters) {
#define CLAMP(x,a,b) x < a ? a : (x > b ? b : x)
static inline int clamp( const int value, const int prec, const int sgnd )
#ifdef _MSC_VER
#define STIN static __inline
#else
#define STIN static inline
#endif
STIN int clamp( const int value, const int prec, const int sgnd )
{
if( sgnd )
{