wfreerdp: fix compilation on windows

This commit is contained in:
Marc-André Moreau 2011-09-23 14:25:38 -04:00
parent 5c5d8a11e8
commit 17ed282656
7 changed files with 12 additions and 14 deletions

View File

@ -31,7 +31,7 @@
#include <freerdp/freerdp.h>
#include <freerdp/gdi/gdi.h>
#include <freerdp/gdi/color.h>
#include <freerdp/common/color.h>
#include <freerdp/utils/debug.h>
#include <freerdp/chanman/chanman.h>

View File

@ -22,6 +22,6 @@
#include <freerdp/types.h>
boolean bitmap_decompress(uint8* srcData, uint8* dstData, int width, int height, int size, int srcBpp, int dstBpp);
FREERDP_API boolean bitmap_decompress(uint8* srcData, uint8* dstData, int width, int height, int size, int srcBpp, int dstBpp);
#endif /* __BITMAP_H */

View File

@ -22,14 +22,6 @@
#include <stdint.h>
#define _MPPC_DEBUG
#ifdef MPPC_DEBUG
#define mprintf(y...) printf(y);
#else
#define mprintf(y...)
#endif
#define RDP5_HISTORY_BUF_SIZE 65536
struct rdp_mppc

View File

@ -200,7 +200,7 @@ void redirection_free(rdpRedirection* redirection)
{
int i;
for (i = 0; i < redirection->targetNetAddressesCount; i++)
for (i = 0; i < (int) redirection->targetNetAddressesCount; i++)
freerdp_string_free(&redirection->targetNetAddresses[i]);
xfree(redirection->targetNetAddresses);

View File

@ -33,6 +33,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#else
#define SHUT_RDWR SD_BOTH
#define close(_fd) closesocket(_fd)
#endif

View File

@ -323,9 +323,10 @@ void update_recv(rdpUpdate* update, STREAM* s)
void update_reset_state(rdpUpdate* update)
{
update->state_start = &update->state_start;
update->state_end = &update->state_end;
memset(update->state_start, 0, update->state_end - update->state_start);
int length;
length = &update->state_end - &update->state_start;
memset(update->state_start, 0, length);
update->order_info.orderType = ORDER_TYPE_PATBLT;
update->switch_surface.bitmapId = SCREEN_BITMAP_SURFACE;
IFCALL(update->SwitchSurface, update, &(update->switch_surface));

View File

@ -30,7 +30,11 @@
void freerdp_sleep(uint32 seconds)
{
#ifndef _WIN32
sleep(seconds);
#else
Sleep(seconds * 1000);
#endif
}
void freerdp_usleep(uint32 useconds)