modelica-3rdparty / Modelica_DeviceDrivers

Free library for interfacing hardware drivers to Modelica models. There is support for joysticks, keyboards, UDP, TCP/IP, LCM, MQTT, shared memory, AD/DA converters, serial port and other devices.
BSD 3-Clause "New" or "Revised" License
77 stars 31 forks source link

Fix MSVC deprecation warning #327

Closed tbeu closed 4 years ago

tbeu commented 4 years ago

Fix warning MDDUDPSocket.h(220): warning C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings

Tested that it still compiles with VS2010

beutlich commented 4 years ago

Thanks.

bernhard-thiele commented 4 years ago

@beutlich Sorry, somehow missed that this PR was available. As far as I know there is no support for VS2010 from Microsoft anymore. It has been removed from our institute's installation. I think we can safely relax the VS2010 requirement, since there will be hardly any installations left. Is there any VS version / approach / compiler flags which you would suggest to use for (testing) the build?

tbeu commented 4 years ago

I compiled all Win binaries using VS2010. It is easier for me to stick with VS2010 for now if you can also live with it.

bernhard-thiele commented 4 years ago

Okay, fine for me