ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/device.C
(Generate patch)

Comparing gvpe/src/device.C (file contents):
Revision 1.1 by pcg, Sat Mar 1 15:53:03 2003 UTC vs.
Revision 1.8 by pcg, Tue Apr 26 00:55:56 2005 UTC

1/* 1/*
2 device.C -- include the correct low-level implementation. 2 device.C -- include the correct low-level implementation.
3 Copyright (C) 2003-2005 Marc Lehmann <gvpe@schmorp.de>
3 4
5 This file is part of GVPE.
6
4 This program is free software; you can redistribute it and/or modify 7 GVPE is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or 9 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version. 10 (at your option) any later version.
8 11
9 This program is distributed in the hope that it will be useful, 12 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 15 GNU General Public License for more details.
13 16
14 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 18 along with gvpe; if not, write to the Free Software
16 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17*/ 20*/
18 21
19#include "config.h" 22#include "config.h"
20 23
21#include <cstring> 24#include <cstring>
58 else 61 else
59 free (p); 62 free (p);
60 } 63 }
61} 64}
62 65
63#if defined(__linux__) 66#if IFTYPE_tincd
67# include "device-tincd.C"
68#elif IFTYPE_native && IF_linux
64# include "device-linux.C" 69# include "device-linux.C"
65#elif defined(__CYGWIN__) 70#elif IFTYPE_native && IF_cygwin
66# include "device-cygwin.C" 71# include "device-cygwin.C"
72#elif IFTYPE_native && IF_darwin
73# include "device-darwin.C"
67#else 74#else
68# error No device implementation for your OS. 75# error No interface implementation for your IFTYPE/IFSUBTYPE combination.
69#endif 76#endif
70 77
71 78

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines