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) #if defined(USE_WINDOWS_API)
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400 #define _WIN32_WINNT 0x0400
#endif
#include <windows.h> #include <windows.h>
#include <wincrypt.h> #include <wincrypt.h>
#else #else

View File

@ -50,6 +50,10 @@
#ifdef CYASSL_GAME_BUILD #ifdef CYASSL_GAME_BUILD
#include "system/xtl.h" #include "system/xtl.h"
#else #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> #include <windows.h>
#endif #endif
#elif defined(THREADX) #elif defined(THREADX)