mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
misc: Avoid redefine of _WIN32_IE.
This commit is contained in:
11
src/misc.c
11
src/misc.c
@@ -33,15 +33,22 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define _WIN32_IE 0x0501 //SHGetSpecialFolderPath
|
|
||||||
|
#ifndef _WIN32_IE
|
||||||
|
# define _WIN32_IE 0x0501 // SHGetSpecialFolderPath
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <winsock2.h> // Must be the first to include
|
#include <winsock2.h> // Must be the first to include
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
|
|
||||||
#if _MSC_VER >= 1400
|
#if _MSC_VER >= 1400
|
||||||
#include <io.h>
|
# include <io.h>
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
|
|
||||||
/* This is needed for a standard getpwuid_r on opensolaris */
|
/* This is needed for a standard getpwuid_r on opensolaris */
|
||||||
#define _POSIX_PTHREAD_SEMANTICS
|
#define _POSIX_PTHREAD_SEMANTICS
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user