From 5e4bc6ec7947a403da3b1989c39accf16449f601 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 11 Aug 2009 15:38:49 +0200 Subject: Fix compilation with MSVC and use declspec to export functions. Thanks to Patrick Spendrin for all the MSVC fixes. --- config.h.cmake | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'config.h.cmake') diff --git a/config.h.cmake b/config.h.cmake index b49b2278..69863735 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -82,3 +82,17 @@ /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #cmakedefine WORDS_BIGENDIAN 1 + +/************************* MS Windows ***************************/ + +#ifdef _WIN32 +# ifdef _MSC_VER +/* On Microsoft compilers define inline to __inline on all others use inline */ +# undef inline +# define inline __inline + +# undef strdup +# define strdup _strdup +# endif // _MSC_VER +#endif /* _WIN32 */ + -- cgit v1.2.3