source: branches/start/MagicSoft/Simulation/Detector/include-GENERAL/RConfig.h@ 9223

Last change on this file since 9223 was 293, checked in by harald, 25 years ago
This this directory you can find some header files that are needed by reflector and by camera. On example is the declaration-(header)-file of the runlib. This is the starting point for further development. This work was done by Jose Carlos Gonzales. Now this is under CVS control.
File size: 3.3 KB
Line 
1
2#ifndef ROOT_RConfig
3#define ROOT_RConfig
4
5/*************************************************************************
6 * *
7 * RConfig *
8 * *
9 * Defines used by ROOT. *
10 * *
11 *************************************************************************/
12
13/*---- machines --------------------------------------------------------------*/
14
15#ifdef __hpux
16# define R__HPUX
17# define R__UNIX
18# define ANSICPP
19#endif
20
21#ifdef _AIX
22# define R__AIX
23# define R__UNIX
24# define ANSICPP
25# define NEED_STRCASECMP
26#endif
27
28#ifdef __alpha
29# define R__ALPHA
30# define R__UNIX
31# define ANSICPP
32# define R__B64
33# define R__BYTESWAP
34#endif
35
36#ifdef __sun
37# ifdef __SVR4
38# define R__SOLARIS
39# define ANSICPP
40# ifdef __i386
41# define R__I386
42# define R__BYTESWAP
43# endif
44# else
45# define R__SUN
46# include <stdlib.h>
47# endif
48# define R__UNIX
49# define NEED_STRING
50# define NEED_SIGJMP
51#endif
52
53#ifdef __sgi
54# define R__SGI
55# define R__UNIX
56# define ANSICPP
57# define NEED_STRING
58# define NEED_SIGJMP
59# ifdef IRIX64
60# define R__SGI64
61# endif
62#endif
63
64#if defined(__linux) && !defined(__powerpc)
65# define R__LINUX
66# define R__UNIX
67# define R__BYTESWAP
68# define NEED_SIGJMP
69#endif
70
71#if defined(__linux) && defined(__powerpc)
72# define R__MKLINUX
73# define R__LINUX
74# define R__UNIX
75# define NEED_SIGJMP
76#endif
77
78#ifdef __GNUG__
79# define R__GNU
80# define ANSICPP
81#endif
82
83#ifdef BORLAND
84# define MSDOS /* Windows will always stay MSDOS */
85# define ANSICPP
86# define R__INT16
87# define R__BYTESWAP
88#endif
89
90#ifdef __SC__
91# define SC
92# if defined(macintosh)
93# define R__MAC
94# define NEED_STRING
95# define ANSICPP
96# elif WIN32
97# define NEED_STRING
98# define NEED_STRCASECMP
99# define ANSICPP
100# else
101# define MSDOS
102# define NEED_STRCASECMP
103# endif
104#endif
105
106#ifdef WIN32
107# define NEED_STRING
108# define NEED_STRCASECMP
109# define ANSICPP
110# define R__BYTESWAP
111#endif
112
113#ifdef __MWERKS__
114# define R__MWERKS
115# define R__MAC
116# define ANSILIB /* ANSI C++ Standard Library conformant */
117# define ANSICPP
118# define NEED_STRING
119# define NEED_STRCASECMP
120#endif
121
122
123/*--- memory and object statistics -------------------------------------------*/
124
125/* #define NOSTATS */
126
127
128/*--- cpp --------------------------------------------------------------------*/
129
130#ifdef ANSICPP
131 /* symbol concatenation operator */
132# define _NAME1_(name) name
133# define _NAME2_(name1,name2) name1##name2
134# define _NAME3_(name1,name2,name3) name1##name2##name3
135
136 /* stringizing */
137# define _QUOTE_(name) #name
138
139#else
140
141# define _NAME1_(name) name
142# define _NAME2_(name1,name2) _NAME1_(name1)name2
143# define _NAME3_(name1,name2,name3) _NAME2_(name1,name2)name3
144
145# define _QUOTE_(name) "name"
146
147#endif
148
149
150/*---- misc ------------------------------------------------------------------*/
151
152#ifdef R__GNU
153# define SafeDelete(p) { if (p) { delete p; p = 0; } }
154#else
155# define SafeDelete(p) { delete p; p = 0; }
156#endif
157
158#endif
159
Note: See TracBrowser for help on using the repository browser.