Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 96267f1

Browse files
vwaurichOpenModelica-Hudson
authored andcommitted
fix Ws2_32.dll linking under windows
1 parent 6d5709b commit 96267f1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Compiler/SimCode/SimCodeFunctionUtil.mo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,12 @@ algorithm
21092109
Error.addCompilerNotification("rt library is not needed under Windows. It is not linked from the external library resource directory.\n");
21102110
then ({},{});
21112111

2112+
//do not link Ws2_32.dll for Modelica Device Drivers as it is not needed under windows
2113+
case Absyn.STRING("Ws2_32") guard System.os()=="Windows_NT"
2114+
equation
2115+
Error.addCompilerNotification("Ws2_32 library is not needed under Windows. It is not linked from the external library resource directory.\n");
2116+
then ({},{});
2117+
21122118
//user32 is already linked under windows
21132119
case Absyn.STRING("User32") guard System.os()=="Windows_NT"
21142120
equation

0 commit comments

Comments
 (0)