4d4ba757b4c90c745d20e39129eefe397073978e
[ctsim.git] / include / ct.h
1 /*****************************************************************************
2 **  This is part of the CTSim program
3 **  Copyright (C) 1983-2000 Kevin Rosenberg
4 **
5 **  $Id: ct.h,v 1.6 2000/05/24 22:48:17 kevin Exp $
6 **  $Log: ct.h,v $
7 **  Revision 1.6  2000/05/24 22:48:17  kevin
8 **  First functional version of SDF library for X-window
9 **
10 **  Revision 1.5  2000/05/11 01:04:44  kevin
11 **  Added Microsoft Windows compatibility
12 **
13 **  Revision 1.4  2000/05/03 19:51:41  kevin
14 **  function renaming for phantoms and phantom elements
15 **
16 **  Revision 1.3  2000/04/30 19:17:35  kevin
17 **  Set up include files for conditional SGP
18 **
19 **  Revision 1.2  2000/04/28 14:14:16  kevin
20 **  *** empty log message ***
21 **
22 **
23 **  This program is free software; you can redistribute it and/or modify
24 **  it under the terms of the GNU General Public License (version 2) as
25 **  published by the Free Software Foundation.
26 **
27 **  This program is distributed in the hope that it will be useful,
28 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
29 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30 **  GNU General Public License for more details.
31 **
32 **  You should have received a copy of the GNU General Public License
33 **  along with this program; if not, write to the Free Software
34 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
35 ******************************************************************************/
36 /*---------------------------------------------------------------------*/
37 /*                  HEADER FILE FOR TOMOGRAPY SYSTEM                   */
38 /*---------------------------------------------------------------------*/
39
40 #ifndef CT_H
41 #define CT_H
42
43 #ifdef _WIN32
44 typedef long off_t;
45 #define HAVE_STRING_H 1
46 #include <fcntl.h>
47 #define snprintf _snprintf
48 #define vsnprintf _vsnprintf
49 #define strcasecmp stricmp
50 #define strncasecmp strnicmp
51 #endif
52
53 #ifdef HAVE_CONFIG_H
54 #include <config.h>
55 #endif
56 #ifdef HAVE_PNG
57 #include "png.h"
58 #endif
59 #ifdef HAVE_G2_H
60 #include "g2.h"
61 #ifdef HAVE_X11
62 #include "g2_X11.h"
63 #endif
64 #endif
65 #ifdef HAVE_STDIO_H
66 #include <stdio.h>
67 #endif
68 #ifdef HAVE_STRING_H
69 #include <string.h>
70 #endif
71 #ifdef HAVE_STDDEF_H
72 #include <stddef.h>
73 #endif
74 #ifdef HAVE_STDLIB_H
75 #include <stdlib.h>
76 #endif
77 #ifdef HAVE_STDARG_H
78 #include <stdarg.h>
79 #endif
80 #ifdef  HAVE_SYS_TYPES_H
81 #include <sys/types.h>
82 #endif
83 #ifdef HAVE_SYS_STAT_H
84 #include <sys/stat.h>
85 #endif
86 #ifdef HAVE_CTYPE_H
87 #include <ctype.h>
88 #endif
89 #ifdef HAVE_MATH_H
90 #include <math.h>
91 #endif
92 #ifdef HAVE_SYS_FCNTL_H
93 #include <sys/fcntl.h>
94 #endif
95 #ifdef HAVE_FCNTL_H
96 #include <fcntl.h>
97 #endif
98 #if defined(HAVE_GETOPT_H) || defined(HAVE_GETOPT_LONG)
99 #include <getopt.h>
100 #endif
101 #ifdef HAVE_UNISTD_H
102 #include <unistd.h>
103 #endif
104 #ifdef HAVE_SETJMP_H
105 #include <setjmp.h>
106 #endif
107 #ifdef HAVE_SYS_PARAM_H
108 #include <sys/param.h>          /* for htonl on FreeBSD */
109 #endif
110 #ifdef HAVE_NETINET_IN_H
111 #include <netinet/in.h>         /* for htonl on Linux/Solaris */
112 #endif
113 #ifdef HAVE_INTTYPES_H
114 #include <inttypes.h>           /* for htonl on Solaris */
115 #endif
116 #ifdef HAVE_STDINT_H
117 #include <stdint.h>             /* Standard ints on Linux */
118 #endif
119
120 #ifdef MPI_CT
121 #include "mpi.h"
122 #endif
123
124 #include "kstddef.h"
125 #include "kmath.h"
126 #include "sdf.h"
127 #include "ir.h"
128 #include "keyboard.h"
129 #include "cio.h"
130 #ifdef HAVE_SGP
131 #include "ezplot.h"
132 #include "sgp.h"
133 #endif
134
135 #endif
136