]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Avoid pragma comment warning under MinGW
authorWolfgang Stöggl <c72578@yahoo.de>
Wed, 10 Apr 2019 11:20:59 +0000 (13:20 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Wed, 10 Apr 2019 13:01:48 +0000 (15:01 +0200)
- Removes the following MinGW compiler warning:
  rrd_client.c:32: warning: ignoring #pragma comment
  [-Wunknown-pragmas] #pragma comment(lib, "ws2_32.lib")
- This #pragma comment is only relevant for MSVC

src/rrd_client.c

index ed64863889845c277e00502e6615e0ca3edfb5d6..df52f5fefa3f875b8d2fb76e49f59a1233073b24 100644 (file)
 #ifdef _WIN32
 
 #include <ws2tcpip.h> // contain #include <winsock2.h>
+#ifdef _MSC_VER
 // Need to link with Ws2_32.lib
 #pragma comment(lib, "ws2_32.lib")
+#endif
 #include <time.h>
 #include <io.h>
 #include <fcntl.h>