source: extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/i686-linux/missing.h@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 2.6 KB
Line 
1/************************************************
2
3 missing.h - prototype for *.c in ./missing, and
4 for missing timeval struct
5
6 $Author: shyouhei $
7 $Date: 2007-02-13 08:01:19 +0900 (Tue, 13 Feb 2007) $
8 created at: Sat May 11 23:46:03 JST 2002
9
10************************************************/
11
12#ifndef MISSING_H
13#define MISSING_H
14
15#if defined(HAVE_SYS_TIME_H)
16# include <sys/time.h>
17#elif !defined(_WIN32)
18# define time_t long
19struct timeval {
20 time_t tv_sec; /* seconds */
21 time_t tv_usec; /* microseconds */
22};
23#endif
24#if defined(HAVE_SYS_TYPES_H)
25# include <sys/types.h>
26#endif
27
28#ifndef HAVE_ACOSH
29extern double acosh _((double));
30extern double asinh _((double));
31extern double atanh _((double));
32#endif
33
34#ifndef HAVE_CRYPT
35extern char *crypt _((char *, char *));
36#endif
37
38#ifndef HAVE_DUP2
39extern int dup2 _((int, int));
40#endif
41
42#ifndef HAVE_EACCESS
43extern int eaccess _((const char*, int));
44#endif
45
46#ifndef HAVE_FINITE
47extern int finite _((double));
48#endif
49
50#ifndef HAVE_FLOCK
51extern int flock _((int, int));
52#endif
53
54/*
55#ifndef HAVE_FREXP
56extern double frexp _((double, int *));
57#endif
58*/
59
60#ifndef HAVE_HYPOT
61extern double hypot _((double, double));
62#endif
63
64#ifndef HAVE_ERF
65extern double erf _((double));
66extern double erfc _((double));
67#endif
68
69#ifndef HAVE_ISINF
70# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
71# define isinf(x) (!finite(x) && !isnan(x))
72# else
73extern int isinf _((double));
74# endif
75#endif
76
77#ifndef HAVE_ISNAN
78extern int isnan _((double));
79#endif
80
81/*
82#ifndef HAVE_MEMCMP
83extern int memcmp _((char *, char *, int));
84#endif
85*/
86
87#ifndef HAVE_MEMMOVE
88extern void *memmove _((void *, void *, int));
89#endif
90
91/*
92#ifndef HAVE_MODF
93extern double modf _((double, double *));
94#endif
95*/
96
97#ifndef HAVE_STRCASECMP
98extern int strcasecmp _((char *, char *));
99#endif
100
101#ifndef HAVE_STRNCASECMP
102extern int strncasecmp _((char *, char *, int));
103#endif
104
105#ifndef HAVE_STRCHR
106extern char *strchr _((char *, int));
107extern char *strrchr _((char *, int));
108#endif
109
110#ifndef HAVE_STRERROR
111extern char *strerror _((int));
112#endif
113
114#ifndef HAVE_STRFTIME
115extern size_t strftime _((char *, size_t, const char *, const struct tm *));
116#endif
117
118#ifndef HAVE_STRSTR
119extern char *strstr _((char *, char *));
120#endif
121
122/*
123#ifndef HAVE_STRTOL
124extern long strtol _((char *, char **, int));
125#endif
126*/
127
128#ifndef HAVE_STRTOUL
129extern unsigned long strtoul _((char *, char **, int));
130#endif
131
132#ifndef HAVE_VSNPRINTF
133# ifdef HAVE_STDARG_PROTOTYPES
134# include <stdarg.h>
135# else
136# include <varargs.h>
137# endif
138extern int snprintf __((char *, size_t n, char const *, ...));
139extern int vsnprintf _((char *, size_t n, char const *, va_list));
140#endif
141
142#endif /* MISSING_H */
Note: See TracBrowser for help on using the repository browser.