Skip to content

Commit

Permalink
Add support for Cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeu committed Mar 23, 2015
1 parent 2b20ca3 commit 6eacc48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Modelica_DeviceDrivers/Resources/Include/MDDSerialPort.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "ModelicaUtilities.h"

#if defined(_MSC_VER)
#if defined(_MSC_VER) || defined(__CYGWIN__)

#include <windows.h>
#include "../src/include/CompatibilityDefs.h"
Expand Down
4 changes: 1 addition & 3 deletions Modelica_DeviceDrivers/Resources/Include/MDDSharedMemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@

#include "ModelicaUtilities.h"

#if defined(_MSC_VER)
#if defined(_MSC_VER) || defined(__CYGWIN__)

#include <windows.h>
#include "../src/include/CompatibilityDefs.h"
#include <stdio.h>
#include <conio.h>
#include <tchar.h>

/** Shared memory object */
typedef struct {
Expand Down
2 changes: 1 addition & 1 deletion Modelica_DeviceDrivers/Resources/Include/MDDUDPSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ DllExport int MDD_udpGetReceivedBytes(void * p_udp) {
return receivedBytes;
}

#elif defined(__linux__)
#elif defined(__linux__) || defined(__CYGWIN__)

#include <stdlib.h>
#include <string.h> /* memset(..) */
Expand Down

0 comments on commit 6eacc48

Please sign in to comment.