Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions DeviceAdapters/89NorthLDI/LDI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

#include <ctime>

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

const char* g_LDI_name = "89 North Laser Diode Illuminator";
const char* g_LDI_description = "Multi-line, Solid-State Laser Illuminator";
#define LDI_ERROR 108901
Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/ABS/AbsImgBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#include "ImgBuffer.h" //!< base class
#include "DeviceThreads.h" //!< MMThreadLock class

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

// ---------------------------Camera - API ------------------------------------
#include "common_structs_exp.h" //!< ABS Camera API structs

Expand Down
5 changes: 4 additions & 1 deletion DeviceAdapters/AndorShamrock/AndorShamrock.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#include "AndorShamrock.h"
#include "ModuleAPIFunctions.h"

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

#include "ShamrockCIF.h"
//#include "ShamrockConstants.h"
#include <sstream>

using namespace std;
Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/BaumerOptronic/BaumerOptronic.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#include "ImgBuffer.h"
#include "DeviceThreads.h"

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

#pragma warning(push)
#pragma warning(disable: 4245)
#include "FxApi.h"
Expand Down
2 changes: 2 additions & 0 deletions DeviceAdapters/DemoCamera/DemoCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#include <future>

#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <timeapi.h>
#endif

Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/Dragonfly/TIRFIntensity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#include "ConfocalMode.h"
#include "Dragonfly.h"

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

const char* const g_TIRFIntensityPropertyName = "TIRF | Optical Feedback";
const char* const g_TIRFIntensityLimitsReadError = "Failed to retrieve TIRF intensity limits";
const char* const g_TIRFIntensityValueReadError = "Failed to retrieve the current TIRF intensity";
Expand Down
6 changes: 4 additions & 2 deletions DeviceAdapters/Elveflow/mux_distrib.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#include "ModuleInterface.h"
#include "mux_distrib.h"
#include "iostream"
#include <iostream>
#include <vector>
#include <string>
#include <windows.h>

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

using namespace std;

Expand Down
3 changes: 1 addition & 2 deletions DeviceAdapters/Elveflow/mux_wire_v3.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#include "ModuleInterface.h"
#include "mux_wire_v3.h"
#include "iostream"
#include <iostream>
#include <vector>
#include <string>
#include <windows.h>

using namespace std;

Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/Elveflow/mux_wire_v3.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#include "DeviceUtils.h"
#include <vector>

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

using namespace std;

class MuxWireV3 : public CGenericBase<MuxWireV3> {
Expand Down
3 changes: 1 addition & 2 deletions DeviceAdapters/Elveflow/ob1_mk4.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#include "ModuleInterface.h"
#include "ob1_mk4.h"
#include "iostream"
#include <iostream>
#include <vector>
#include <string>
#include <windows.h>

using namespace std;

Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/Elveflow/ob1_mk4.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#include "DeviceUtils.h"
#include <vector>

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

using namespace std;

class Ob1Mk4 : public CGenericBase<Ob1Mk4> {
Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/Hikrobot/HikrobotCamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
#include <iostream>
#include "MvCamera.h"

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>


//////////////////////////////////////////////////////////////////////////////
// Error codes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
// SUBSYSTEM: DeviceAdapters
//-----------------------------------------------------------------------------

#ifdef WIN32
#include <windows.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif

#include "ALC_REVOject3Wrapper.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
// PROJECT: Micro-Manager
// SUBSYSTEM: DeviceAdapters
//-----------------------------------------------------------------------------
#ifdef WIN32
#include <windows.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
#include "ALC_REV_ILE2Wrapper.h"
#include "ILESDKLock.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
// PROJECT: Micro-Manager
// SUBSYSTEM: DeviceAdapters
//-----------------------------------------------------------------------------
#ifdef WIN32
#include <windows.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
#include "ALC_REV_ILE4Wrapper.h"
#include "ILESDKLock.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
// Based off the AndorLaserCombiner adapter from Karl Hoover, UCSF
//

#ifdef WIN32
#include <windows.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif

#include "ALC_REV.h"
Expand All @@ -22,7 +23,7 @@
#include "ALC_REV_ILE4Wrapper.h"
#include "ILESDKLock.h"
#include "../IntegratedLaserEngine.h"
#include "../../../MMDevice/DeviceThreads.h"
#include "DeviceThreads.h"
#include <sstream>
#include <exception>

Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/IntegratedLaserEngine/ILEWrapper/ILEWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#include "..\ILEWrapperInterface.h"
#include <map>

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

class CALC_REV_ILEActiveBlankingManagementWrapper;
class CALC_REV_ILEPowerManagementWrapper;
class CALC_REV_ILEPowerManagement2Wrapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "ILEWrapper/ILEWrapper.h"
#include "Lasers.h"
#include "VeryLowPower.h"
#include "MMDevice.h"


// Properties
Expand Down Expand Up @@ -619,7 +620,7 @@ void CIntegratedLaserEngine::LogMMMessage( std::string Message, bool DebugOnly )
LogMessage( Message, DebugOnly );
}

MM::MMTime CIntegratedLaserEngine::GetCurrentTime()
MM::MMTime CIntegratedLaserEngine::GetCurrentTimeMM()
{
return GetCurrentMMTime();
}
Expand Down
4 changes: 2 additions & 2 deletions DeviceAdapters/IntegratedLaserEngine/IntegratedLaserEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef _INTEGRATEDLASERENGINE_H_
#define _INTEGRATEDLASERENGINE_H_

#include "../../MMDevice/DeviceBase.h"
#include "DeviceBase.h"
#include <string>
#include <vector>
#include "ILEWrapperInterface.h"
Expand Down Expand Up @@ -85,7 +85,7 @@ class CIntegratedLaserEngine : public CShutterBase<CIntegratedLaserEngine>

// Helper functions
void LogMMMessage( std::string Message, bool DebugOnly = false );
MM::MMTime GetCurrentTime();
MM::MMTime GetCurrentTimeMM();

void CheckAndUpdateLasers();
virtual void CheckAndUpdateLowPowerMode() = 0;
Expand Down
4 changes: 2 additions & 2 deletions DeviceAdapters/IntegratedLaserEngine/Lasers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void CLasers::WaitOnLaserWarmingUp()
std::vector<TLaserState> vState( NumberOfLasers_ + 1, ALC_NOT_AVAILABLE );

// Lasers can take up to 90 seconds to initialize
MM::TimeoutMs vTimerOut( MMILE_->GetCurrentTime(), 91000 );
MM::TimeoutMs vTimerOut( MMILE_->GetCurrentTimeMM(), 91000 );

while ( true )
{
Expand Down Expand Up @@ -119,7 +119,7 @@ void CLasers::WaitOnLaserWarmingUp()
break;
}

if ( vTimerOut.expired( MMILE_->GetCurrentTime() ) )
if ( vTimerOut.expired( MMILE_->GetCurrentTimeMM() ) )
{
MMILE_->LogMMMessage( " some lasers did not respond", false );
break;
Expand Down
5 changes: 4 additions & 1 deletion DeviceAdapters/IntegratedLaserEngine/Lasers.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
#define _LASERS_H_

#include "Property.h"
#include "../../MMDevice/DeviceThreads.h"
#include "DeviceThreads.h"

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

class IALC_REV_Laser2;
class IALC_REV_ILEPowerManagement;
Expand Down
3 changes: 2 additions & 1 deletion DeviceAdapters/IntegratedLaserEngine/PortsConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

#include "PortsConfiguration.h"
#include "IntegratedLaserEngine.h"
#include <windows.h>
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <Shlobj.h>
#include <fstream>
#include "boost\filesystem.hpp"
Expand Down
13 changes: 2 additions & 11 deletions DeviceAdapters/JAI/JAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,8 @@
#include <DeviceThreads.h>
#include <cstdint>

#ifdef WIN32
//...
#endif

#ifdef __APPLE__
//...
#endif

#ifdef __linux__
//...
#endif
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

#include <string>
#include <vector>
Expand Down
5 changes: 3 additions & 2 deletions DeviceAdapters/LaserQuantumLaser/LaserQuantumLaser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
#include <iostream>
#include <fstream>

#ifdef WIN32
#include "winuser.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif

const char* g_DeviceName = "Laser";
Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/MCCDAQ/MCCDAQ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@

#include "MCCDAQ.h"
#include "ModuleInterface.h"

#define WIN32_LEAN_AND_MEAN
#include "cbw.h"

#include <sstream>


Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/MCL_MicroDrive/MicroDriveXYStage.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ License: Distributed under the BSD license.
#include "handle_list_if.h"
#include "HandleListType.h"

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

#define ERR_UNKNOWN_MODE 102
#define ERR_UNKNOWN_POSITION 103
#define ERR_NOT_VALID_INPUT 104
Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/MCL_MicroDrive/MicroDriveZStage.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ License: Distributed under the BSD license.
#include "handle_list_if.h"
#include "HandleListType.h"

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

#define ERR_UNKNOWN_MODE 102
#define ERR_UNKNOWN_POSITION 103
#define ERR_NOT_VALID_INPUT 104
Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/MCL_NanoDrive/MCL_NanoDrive_XYStage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ License: Distributed under the BSD license.
#include <vector>
#include <string>

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

MCL_NanoDrive_XYStage::MCL_NanoDrive_XYStage():
calibrationX_(0),
calibrationY_(0),
Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/MCL_NanoDrive/MCL_NanoDrive_ZStage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ License: Distributed under the BSD license.
#include <vector>
#include <string>

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

MCL_NanoDrive_ZStage::MCL_NanoDrive_ZStage() :
axis_(0),
calibration_(0.0),
Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/Mightex_C_Cam/Mightex_USBCamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
#include <map>
#include <algorithm>

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

//////////////////////////////////////////////////////////////////////////////
// Error codes
//
Expand Down
3 changes: 3 additions & 0 deletions DeviceAdapters/Mightex_SB_Cam/Mightex_SB_Camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
#include <map>
#include <algorithm>

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

//////////////////////////////////////////////////////////////////////////////
// Error codes
//
Expand Down
4 changes: 4 additions & 0 deletions DeviceAdapters/Motic/MoticCamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
#include "ImgBuffer.h"
#include "DeviceThreads.h"
#include "ImgBuffer.h"

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

using namespace std;
//////////////////////////////////////////////////////////////////////////////
// Error codes
Expand Down
6 changes: 5 additions & 1 deletion DeviceAdapters/MoticMicroscope/MoticMicroscope.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@

#include <map>
#include <set>
using namespace std;
#include "DeviceBase.h"

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

using namespace std;

// Error codes
#define ERR_HUB_PATH (900)

Expand Down
Loading
Loading