#ifndef __OWINTERFACES_H_
#define __OWINTERFACES_H_
+#if defined(WIN) || defined(LINUX)
+#else
+#if defined(_WINDOWS) || defined(__WINDOWS__) || defined(_WIN32) || defined(WIN32)
+#define WIN
+#else
+#define LINUX
+#endif
+#endif
+
+
#include <vector>
#include <stdint.h>
#include <string>
+#ifdef LINUX
#include <termios.h>
+#endif
#include <stdarg.h>
+#ifdef WIN
+#include <Windows.h>
+
+#endif
class owDevice;
class owDeviceConfig;
#if defined(_WINDOWS) || defined(__WINDOWS__) || defined(_WIN32) || defined(WIN32)
#define USE_WINDOWS_TIME 1
#include <windows.h>
- #include "win32/usb.h" // libusb header
+ //#include "win32/usb.h" // libusb header
#else
#define USE_WINDOWS_TIME 0
#include <time.h>
va_list arg;
int done;
va_start (arg, format);
+#ifdef LINUX
done = vsprintf (s, format, arg);
+#endif
+#ifdef WIN
+ done = vsprintf_s(s,300, format, arg);
+#endif
va_end (arg);
logtext=s;
level=llevel;
int flashHEXFile(std::string filename,snum_t dev,int resetid,int progress);
- int owFirst() {
+ virtual int owFirst() {
LastDiscrepancy = 0;
LastDeviceFlag = FALSE;
LastFamilyDiscrepancy = 0;
return owSearch();
}
- int owNext() {
+ virtual int owNext() {
return owSearch();
}
virtual ~owInterface() {