Fix windows compilation issues. But still not final. We should move to pthread and factorize the code with *nix). Ideally we should move to libusb-1.0 too.

This commit is contained in:
izsh@fail0verflow.com 2010-02-20 00:36:48 +00:00
commit 91c38cf715
8 changed files with 30 additions and 40 deletions

View file

@ -10,10 +10,11 @@
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "graph.h"
#include "proxusb.h"
#include "cmdmain.h"
#include "graph.h"
#include "ui.h"
#include "cmdmain.h"
#define oops() do { \
char line[100]; \
@ -354,7 +355,7 @@ nopaint:
return 1;
}
void PrintToScrollback(char *fmt, ...)
void PrintAndLog(char *fmt, ...)
{
va_list f;
char str[1024];
@ -450,8 +451,8 @@ void ShowGui()
ResizeCommandWindow();
SetFocus(CommandEdit);
PrintToScrollback(">> Started prox, built " __DATE__ " " __TIME__);
PrintToScrollback(">> Connected to device");
PrintAndLog(">> Started prox, built " __DATE__ " " __TIME__);
PrintAndLog(">> Connected to device");
GreyPenLite = CreatePen(PS_SOLID, 1, RGB(50, 50, 50));
GreyPen = CreatePen(PS_SOLID, 1, RGB(100, 100, 100));