strings.h is not available on Win32, moved inside #ifndef WIN32
Was possibly trying to sprintf into a NULL pointer? That's bad. Now returning FAILURE on NULL.
A windows version for directory enumerations
Basically taken from https://github.com/danielgindi/FileDir with some adjustments
Prevent CreateDirectory macro clashes on windows (CreateDirectoryA/W)
MSVC C compiler complains about a variable declaration not in beginning of the scope
Added comments on some MSVC #defines
Made these macros more readable
Use correct winsock2.h version instead of the Winsock1 that was reference from windows.h
MSVC adjustments
Sample MSVC 2010 project