File: porting.h

package info (click to toggle)
curves 0.8.7
  • links: PTS
  • area: main
  • in suites: slink
  • size: 704 kB
  • ctags: 1,001
  • sloc: cpp: 6,197; ansic: 519; makefile: 270; sh: 192; fortran: 149
file content (60 lines) | stat: -rw-r--r-- 1,537 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* porting.h
   $Id: porting.h,v 1.3 1998/09/07 00:49:36 elf Exp $
   
   written by Marc Singer
   19 Jun 1998

   This file is part of the project CurVeS.  See the file README for
   more information.

   Copyright (C) 1996 Marc Singer

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License as
   published by the Free Software Foundation; either version 2 of the
   License, or (at your option) any later version.

   This program is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   General Public License for more details.

   You should have received a copy of the GNU General Public License
   in a file called COPYING along with this program; if not, write to
   the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA
   02139, USA.

*/

#if !defined (__PORTING_H__)
#    define   __PORTING_H__

#include <termios.h>		/* cfmakeraw */

#if !defined (HAVE_CFMAKERAW)
int cfmakeraw (struct termios *termios_p);
#endif

#if !defined (HAVE_VSNPRINTF)
# include <stdarg.h>
# if defined __cplusplus
extern "C" {
# endif
int vsnprintf (char *str, size_t n, const char *format, va_list ap);
# if defined __cplusplus
}
# endif
#endif 

#if !defined (HAVE_RINDEX)
# if defined __cplusplus
extern "C" {
# endif
char* rindex (const char *sz, int c);
# if defined __cplusplus
}
# endif
#endif 


#endif  /* __PORTING_H__ */