fatihky / sparsehash

Automatically exported from code.google.com/p/sparsehash
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Experminal sparse hash c code won't compile on visual studio 2008 #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile the experimental C sparsehash on visual studio  
2. netinet/in.h not found -> as it's a unix specific header

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

What version of the product are you using? On what operating system?
windows 7 

Please provide any additional information below.

we can replace netinet/in.h with the winsock lib, any idea ?

Original issue reported on code.google.com by m.nabil....@gmail.com on 25 Dec 2009 at 5:13

GoogleCodeExporter commented 9 years ago
Sorry, but we don't maintain the code in the experimental directory.  You're 
welcome
to do whatever you'd like to get the code working! -- and can post a patch 
here.  I'm
happy to add the patch to the experimental directory in future releases, in 
case it
helps anyone.

That said, I think in.h is just used for the inet_ntoa routines.  In modern 
unices,
it's probably better to use bswap32/64.  So you shouldn't need winsock, just the
windows equivalent of bswap32/64.

Original comment by csilv...@gmail.com on 25 Dec 2009 at 7:10