From 8bb4abc54f50dac007458639e767b0504b087156 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 22 May 2013 01:02:07 +0000 Subject: [PATCH] Several more #ifdef's. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3293 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- devsetup.h | 2 ++ mainwindow.cpp | 2 +- rigclass.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/devsetup.h b/devsetup.h index 7cddb8818..ee5494da0 100644 --- a/devsetup.h +++ b/devsetup.h @@ -101,6 +101,7 @@ private: extern int ptt(int nport, int ntx, int* iptt, int* nopen); +#ifdef WIN32 extern "C" { const bool HRDInterfaceConnect(const wchar_t *host, const ushort); void HRDInterfaceDisconnect(); @@ -108,5 +109,6 @@ extern "C" { const wchar_t* HRDInterfaceSendMessage(const wchar_t *msg); void HRDInterfaceFreeString(const wchar_t *lstring); } +#endif #endif // DEVSETUP_H diff --git a/mainwindow.cpp b/mainwindow.cpp index b70c81d70..93eff7948 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//---------------------------------------------------------------- MainWindow +//--------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h" diff --git a/rigclass.h b/rigclass.h index e4c5cd6f5..b882bcf29 100644 --- a/rigclass.h +++ b/rigclass.h @@ -79,6 +79,7 @@ public: } }; +#ifdef WIN32 extern "C" { const bool HRDInterfaceConnect(const wchar_t *host, const ushort); void HRDInterfaceDisconnect(); @@ -86,5 +87,6 @@ extern "C" { const wchar_t* HRDInterfaceSendMessage(const wchar_t *msg); void HRDInterfaceFreeString(const wchar_t *lstring); } +#endif #endif // _RIGCLASS_H