pombreda / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

redefinition fd_set / problem with winsock2.h include file #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download libkml-0.4.0.tar.gz
2. Unpack
3. libkml.sln

What is the expected output? What do you see instead?

>time_util.cc
1>c:\program files\microsoft visual studio
8\vc\platformsdk\include\winsock2.h(112) : error C2011: 'fd_set' :
redéfinition du type 'struct'
1>        c:\program files\microsoft visual studio
8\vc\platformsdk\include\winsock.h(54) : voir la déclaration de 'fd_set'
1>c:\program files\microsoft visual studio
8\vc\platformsdk\include\winsock2.h(147) : warning C4005: 'FD_SET' :
redéfinition de macro

What version of the product are you using? On what operating system?
Windows XP, Visual Studio 2005 (v 8.0)

Did you run the unit test suite that comes with the project? Did all tests
pass?
No

Please provide any additional information below.

In src/kml/base/time_util.cc : Replace 
#include <winsock2.h> 
by 
#include <winsock.h> 
solve this issue.

Original issue reported on code.google.com by thomas.f...@c-s.cnes.fr on 15 Sep 2008 at 3:46

GoogleCodeExporter commented 9 years ago
Good catch, thanks. r270 brings the win32 build up to date.

Original comment by kml.mash...@gmail.com on 15 Sep 2008 at 7:34