Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building error on VS2008 #10

Open
erakis opened this issue Nov 2, 2016 · 0 comments
Open

Building error on VS2008 #10

erakis opened this issue Nov 2, 2016 · 0 comments

Comments

@erakis
Copy link

erakis commented Nov 2, 2016

winsock2.h should be include. I did not test with more recent version of Visual Studio but on 2008 struct tv is not recognized.

#if defined(_WIN32)

#if BUILDING_DLL
# define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
# define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */

#include <time.h>
#include <Winsock.h>    // <--------- Add this
#endif

If this is only a problem for VS2008, then

#if _MSC_VER  <= 1500
    #include <Winsock.h>
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant