diff options
author | Andreas Schneider <asn@cynapses.org> | 2010-07-13 15:10:19 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-08-03 18:13:59 +0200 |
commit | 296f6a9217cb7afa080edb0efc16d309db77c06b (patch) | |
tree | 85395c82c66a1292d99a751a2a94f65b940ba8fb /config.h.cmake | |
parent | d688ed2553cd756d9e0bdacd62145d1e9e1f1367 (diff) | |
download | libssh-296f6a9217cb7afa080edb0efc16d309db77c06b.tar.gz libssh-296f6a9217cb7afa080edb0efc16d309db77c06b.tar.xz libssh-296f6a9217cb7afa080edb0efc16d309db77c06b.zip |
build: Fixed the Windows preprocessor macros and defines.
Diffstat (limited to 'config.h.cmake')
-rw-r--r-- | config.h.cmake | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/config.h.cmake b/config.h.cmake index 4b96e28c..257c7bc3 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -38,16 +38,16 @@ /*************************** FUNCTIONS ***************************/ /* Define to 1 if you have the `vsnprintf' function. */ -#cmakedefine HAVE_VSNPRINTF +#cmakedefine HAVE_VSNPRINTF 1 /* Define to 1 if you have the `_vsnprintf' function. */ -#cmakedefine HAVE__VSNPRINTF +#cmakedefine HAVE__VSNPRINTF 1 /* Define to 1 if you have the `_vsnprintf_s' function. */ -#cmakedefine HAVE__VSNPRINTF_S +#cmakedefine HAVE__VSNPRINTF_S 1 /* Define to 1 if you have the `strncpy' function. */ -#cmakedefine HAVE_STRNCPY +#cmakedefine HAVE_STRNCPY 1 /* Define to 1 if you have the `cfmakeraw' function. */ #cmakedefine HAVE_CFMAKERAW 1 @@ -106,17 +106,3 @@ /* 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 */ - |