5762870 [rkeene@sledge /home/rkeene/devel/backuppcd/all/backuppcd-200601171056]$ cat -n win32.h
 1 /*
 2  * Copyright (C) 2005  Roy Keene
 3  *
 4  * This program is free software; you can redistribute it and/or
 5  * modify it under the terms of the GNU General Public License
 6  * as published by the Free Software Foundation; either version 2
 7  * of the License, or (at your option) any later version.
 8  *
 9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17  *
18  * Author Information
19  *      Roy Keene
20  *      Planning Systems Inc
21  *      Slidell, LA
22  *      backuppcd-bugs@psislidell.com
23  */
24 
25 #if !defined(_LOCAL_WIN32_H) && defined(__WIN32__) && !defined(__CYGWIN__)
26 #define _LOCAL_WIN32_H
27 
28 #ifdef HAVE_CONFIG_H
29 #include "config.h"
30 #endif
31 
32 #ifdef __MINGW32__
33 #  ifdef NO_WIN32_NT4
34 #    define _WIN32_WINNT 0x0500
35 #  endif
36      /* MingW32 specific stuff here. */
37 #  if defined(HAVE_WINSOCK2_H) && defined(HAVE_LIBWSOCK32)
38      /* We have to override the detected configuration
39         because it can't detect the network libraries. */
40 #    define HAVE_GETHOSTBYNAME 1
41 #    define HAVE_INET_ADDR 1
42 #    define HAVE_SOCKET 1
43 #    define HAVE_CONNECT 1
44 #  endif
45 #  define sleep(x) Sleep((x) * 1000)
46 #else
47    /* MSVC++ configuration follows */
48 #  undef HAVE_UNISTD_H
49 #  define HAVE_STDLIB_H 1
50 #  define HAVE_WINDOWS_H 1
51 #  define HAVE_STDARG_H 1
52 #  define HAVE_WINSVC_H 1
53 #  define HAVE_WINSOCK2_H 1
54 #  define HAVE_WINDOWSX_H 1
55 #endif /* __MINGW32__ */
56 
57 #ifdef HAVE_WINDOWS_H
58 #  include <windows.h>
59 #endif
60 #ifdef HAVE_WINDOWSX_H
61 #  include <windowsx.h>
62 #endif
63 #ifdef HAVE_WINSOCK2_H
64 #  include <winsock2.h>
65 #endif
66 #ifdef HAVE_WINSVC_H
67 #  include <winsvc.h>
68 #endif
69 #ifdef HAVE_UNISTD_H
70 #  include <unistd.h>
71 #endif
72 
73 #define MKDIR_TAKES_ONE_ARG 1
74 
75 #define _USE_WIN32_ 1
76 
77 #endif /* _LOCAL_WIN32_H */
5762871 [rkeene@sledge /home/rkeene/devel/backuppcd/all/backuppcd-200601171056]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2005-08-24 01:54:47