ODIN
tjcstd.h
1 /***************************************************************************
2  tjcstd.h - description
3  -------------------
4  begin : Thu Jun 16 2004
5  copyright : (C) 2000-2021 by Thies Jochimsen
6  email : thies@jochimsen.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef TJCSTD_H
19 #define TJCSTD_H
20 
21 #ifndef TJUTILS_CONFIG_H
22 #define TJUTILS_CONFIG_H
23 #include <tjutils/config.h>
24 #endif
25 
26 
27 // boilerplate C headers
28 #include <stdio.h>
29 #include <stdlib.h>
30 #include <string.h>
31 #include <time.h>
32 #include <math.h>
33 #include <errno.h>
34 
35 
36 #ifdef HAVE_CTYPE_H
37 #include <ctype.h>
38 #endif
39 
40 
41 
42 
43 // missing C functions
44 
45 #ifndef HAVE_CTYPE_H
46 int isdigit(int c);
47 int isalpha(int c);
48 int isalnum(int c);
49 int isspace(int c);
50 int islower(int c);
51 int tolower(int c);
52 int isupper(int c);
53 int toupper(int c);
54 #endif
55 
56 
57 #ifndef HAVE_J1
58 double j1(double x);
59 #endif
60 
61 #ifndef HAVE_ACOSH
62 double acosh(double x);
63 #endif
64 
65 
66 #ifdef VXWORKS
67 // fix broken exp function
68 #define exp exp4vxworks
69 double exp4vxworks(double x);
70 #endif
71 
72 
73 #ifndef HAVE_DL
74 void *dlopen (const char *filename, int flag);
75 const char *dlerror(void);
76 void *dlsym(void *handle, char *symbol);
77 int dlclose (void *handle);
78 #endif
79 
80 //make VStudio 2005 happy with snprintf
81 #ifdef USING_WIN32
82 #ifndef HAVE_SNPRINTF
83 #define snprintf _snprintf
84 #endif //HAVE_SNPRINTF
85 #endif //USING_WIN32
86 
87 
88 #endif