source: git/src/osdepend.h @ 7bdf66d

RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since 7bdf66d was 7bdf66d, checked in by Olly Betts <olly@…>, 14 years ago

lib/messages.txt,src/: Remove things we no longer need now we've
dropped support for RISC OS and DOS.

git-svn-id: file:///home/survex-svn/survex/trunk@3505 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/* osdepend.h
2 * Contains commonly required OS dependent bits
3 * Copyright (C) 1993-2003,2004,2005,2010 Olly Betts
4 *
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.
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
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
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
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 */
19
20#ifndef OSDEPEND_H  /* only include once */
21# define OSDEPEND_H
22
23# include "whichos.h"
24# include "ostypes.h"
25
26# if OS_WIN32
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
34#  ifdef __TURBOC__
35#   include <time.h>
36#   ifndef CLOCKS_PER_SEC
37#    define CLOCKS_PER_SEC CLK_TCK
38#   endif
39#  endif
40
41# elif OS_UNIX
42
43/* FNM_SEP_DRV and FNM_SEP_EXT needn't be defined */
44#  define FNM_SEP_LEV '/'
45/* #  define FNM_SEP_DRV  No equivalent under UNIX */
46#  define FNM_SEP_EXT '.'
47
48# else
49#  error Do not know what to do for this operating system
50# endif
51
52/***************************************************************************/
53
54/* prototypes for functions in osdepend.c */
55bool fAbsoluteFnm(const char *fnm);
56bool fDirectory(const char *fnm);
57
58# ifndef HAVE_DIFFTIME
59#  define difftime(A, B) ((B)-(A))
60# endif
61
62#endif /* !OSDEPEND_H */
Note: See TracBrowser for help on using the repository browser.