1 | /* |
1 | /* |
2 | device.C -- include the correct low-level implementation. |
2 | device.C -- include the correct low-level implementation. |
|
|
3 | Copyright (C) 2003-2004 Marc Lehmann <pcg@goof.com> |
3 | |
4 | |
4 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by |
6 | 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 |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
58 | else |
59 | else |
59 | free (p); |
60 | free (p); |
60 | } |
61 | } |
61 | } |
62 | } |
62 | |
63 | |
63 | #if defined(__linux__) |
64 | #if IFTYPE_tincd |
|
|
65 | # include "device-tincd.C" |
|
|
66 | #elif IFTYPE_native && IF_linux |
64 | # include "device-linux.C" |
67 | # include "device-linux.C" |
65 | #elif defined(__CYGWIN__) |
68 | #elif IFTYPE_native && IF_cygwin |
66 | # include "device-cygwin.C" |
69 | # include "device-cygwin.C" |
67 | #else |
70 | #else |
68 | # error No device implementation for your OS. |
71 | # error No interface implementation for your IFTYPE/IFSUBTYPE combination. |
69 | #endif |
72 | #endif |
70 | |
73 | |
71 | |
74 | |