lean and mean windows fix

This commit is contained in:
toddouska 2011-12-15 11:42:31 -08:00
parent 46b0b2d370
commit 0254194e20
2 changed files with 7 additions and 1 deletions

View File

@ -33,7 +33,9 @@
#if defined(USE_WINDOWS_API)
#define _WIN32_WINNT 0x0400
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif
#include <windows.h>
#include <wincrypt.h>
#else

View File

@ -50,6 +50,10 @@
#ifdef CYASSL_GAME_BUILD
#include "system/xtl.h"
#else
#if defined(_WIN32_WCE) || defined(WIN32_LEAN_AND_MEAN)
/* On WinCE winsock2.h must be included before windows.h */
#include <winsock2.h>
#endif
#include <windows.h>
#endif
#elif defined(THREADX)