Check-in [c061ce704b]
Overview
Comment:Updated win32 support slightly.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c061ce704b54d63ec81a1b849dfacacb0dd71d8e
User & Date: rkeene on 2004-12-20 00:48:30
Other Links: manifest | tags
Context
2004-12-20
00:49
Fixed typo where getpwuid was checked for twice. check-in: cb1b3fadc8 user: rkeene tags: trunk
00:48
Updated win32 support slightly. check-in: c061ce704b user: rkeene tags: trunk
00:44
Cygwin was made its own port. Various fixes to strtoll replacement. libconfig 0.1.14 check-in: 7d6fa8e6b1 user: rkeene tags: 0.1.14, trunk
Changes

Modified win32.h from [f0ab9e6ba7] to [a790cc0df9].

10
11
12
13
14
15
16

17
18
19
20
21
22



23
24
25
26
27



28
29
30



31
32
33
34
#  if defined(HAVE_WINSOCK2_H) && defined(HAVE_LIBWSOCK32)
     /* We have to override the detected configuration
        because it can't detect the network libraries. */
#    define HAVE_GETHOSTBYNAME 1
#    define HAVE_INET_ADDR 1
#    define HAVE_SOCKET 1
#  endif

#else
   /* MSVC++ configuration follows */
#  undef HAVE_UNISTD_H
#  define HAVE_STDLIB_H 1
#  define HAVE_WINDOWS_H 1
#  define HAVE_STDARG_H 1



#endif /* __MINGW32__ */

#ifdef HAVE_WINDOWS_H
#  include <windows.h>
#endif



#ifdef HAVE_WINSOCK2_H
#  include <winsock2.h>
#endif




#define _USE_WIN32_ 1

#endif /* _LOCAL_WIN32_H */







>






>
>
>





>
>
>



>
>
>




10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#  if defined(HAVE_WINSOCK2_H) && defined(HAVE_LIBWSOCK32)
     /* We have to override the detected configuration
        because it can't detect the network libraries. */
#    define HAVE_GETHOSTBYNAME 1
#    define HAVE_INET_ADDR 1
#    define HAVE_SOCKET 1
#  endif
#  define sleep(x) Sleep((x) * 1000)
#else
   /* MSVC++ configuration follows */
#  undef HAVE_UNISTD_H
#  define HAVE_STDLIB_H 1
#  define HAVE_WINDOWS_H 1
#  define HAVE_STDARG_H 1
#  define HAVE_WINSVC_H 1
#  define HAVE_WINSOCK2_H 1
#  define HAVE_WINDOWSX_H 1
#endif /* __MINGW32__ */

#ifdef HAVE_WINDOWS_H
#  include <windows.h>
#endif
#ifdef HAVE_WINDOWSX_H
#  include <windowsx.h>
#endif
#ifdef HAVE_WINSOCK2_H
#  include <winsock2.h>
#endif
#ifdef HAVE_WINSVC_H
#  include <winsvc.h>
#endif

#define _USE_WIN32_ 1

#endif /* _LOCAL_WIN32_H */