[421b7d2] | 1 | /* osdepend.h |
---|
[d1b1380] | 2 | * Contains commonly required OS dependent bits |
---|
[9965b2b] | 3 | * Copyright (C) 1993-2003,2004,2005,2010 Olly Betts |
---|
[846746e] | 4 | * |
---|
[89231c4] | 5 | * This program is free software; you can redistribute it and/or modify |
---|
| 6 | * it under the terms of the GNU General Public License as published by |
---|
| 7 | * the Free Software Foundation; either version 2 of the License, or |
---|
| 8 | * (at your option) any later version. |
---|
[846746e] | 9 | * |
---|
| 10 | * This program is distributed in the hope that it will be useful, |
---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
[89231c4] | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 13 | * GNU General Public License for more details. |
---|
[846746e] | 14 | * |
---|
[89231c4] | 15 | * You should have received a copy of the GNU General Public License |
---|
| 16 | * along with this program; if not, write to the Free Software |
---|
[ecbc6c18] | 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
[d1b1380] | 18 | */ |
---|
| 19 | |
---|
| 20 | #ifndef OSDEPEND_H /* only include once */ |
---|
| 21 | # define OSDEPEND_H |
---|
| 22 | |
---|
| 23 | # include "whichos.h" |
---|
| 24 | # include "ostypes.h" |
---|
| 25 | |
---|
[affaeee] | 26 | # if OS_WIN32 |
---|
[d1b1380] | 27 | |
---|
| 28 | /* FNM_SEP_DRV and FNM_SEP_EXT and FNM_SEP_LEV2 needn't be defined */ |
---|
| 29 | # define FNM_SEP_LEV '\\' |
---|
| 30 | # define FNM_SEP_LEV2 '/' |
---|
| 31 | # define FNM_SEP_DRV ':' |
---|
| 32 | # define FNM_SEP_EXT '.' |
---|
| 33 | |
---|
[affaeee] | 34 | # elif OS_UNIX |
---|
[d1b1380] | 35 | |
---|
| 36 | /* FNM_SEP_DRV and FNM_SEP_EXT needn't be defined */ |
---|
| 37 | # define FNM_SEP_LEV '/' |
---|
| 38 | /* # define FNM_SEP_DRV No equivalent under UNIX */ |
---|
| 39 | # define FNM_SEP_EXT '.' |
---|
| 40 | |
---|
[affaeee] | 41 | # else |
---|
| 42 | # error Do not know what to do for this operating system |
---|
| 43 | # endif |
---|
[d1b1380] | 44 | |
---|
| 45 | /***************************************************************************/ |
---|
| 46 | |
---|
| 47 | /* prototypes for functions in osdepend.c */ |
---|
[a9f5117] | 48 | bool fAbsoluteFnm(const char *fnm); |
---|
| 49 | bool fDirectory(const char *fnm); |
---|
[a420b49] | 50 | |
---|
| 51 | # ifndef HAVE_DIFFTIME |
---|
| 52 | # define difftime(A, B) ((B)-(A)) |
---|
| 53 | # endif |
---|
[d1b1380] | 54 | |
---|
| 55 | #endif /* !OSDEPEND_H */ |
---|