From b593ff06adbcfbe713f637dea220f8884a6bd83e Mon Sep 17 00:00:00 2001 From: cgohlke Date: Tue, 24 Jun 2014 22:23:17 -0700 Subject: [PATCH] Fix msvc warning: 'inline' : macro redefinition --- libImaging/ImPlatform.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libImaging/ImPlatform.h b/libImaging/ImPlatform.h index 92c126a10..8e85e627c 100644 --- a/libImaging/ImPlatform.h +++ b/libImaging/ImPlatform.h @@ -17,12 +17,12 @@ #error Sorry, this library requires ANSI header files. #endif +#if !defined(PIL_USE_INLINE) +#define inline +#else #if defined(_MSC_VER) && !defined(__GNUC__) #define inline __inline #endif - -#if !defined(PIL_USE_INLINE) -#define inline #endif #ifdef _WIN32