source: GTP/trunk/Lib/Vis/Preprocessing/src/havran/configh.h @ 2629

Revision 2629, 2.1 KB checked in by bittner, 17 years ago (diff)

commit after merge with vlastimil

Line 
1// ================================================================
2// $Id: configh.h $
3//
4// configh.h
5//
6//      Global configuration things for header files.
7//
8// REPLACEMENT_STRING
9//
10// Copyright by Vlastimil Havran, 2006 - email to "vhavran AT seznam.cz"
11// Initial coding by Vlastimil Havran, 2000.
12
13#ifndef __CONFIGH_H__
14#define __CONFIGH_H__
15
16#ifndef USE_GOLEM_NAMESPACE
17// without namespaces
18#define  __BEGIN_GOLEM_HEADER
19#define  __END_GOLEM_HEADER
20#else
21// with namespace
22#define NAMESPACEDEF     GOLEMLIB
23// use of namespace commands inside the library sources
24#define  __BEGIN_GOLEM_HEADER namespace NAMESPACEDEF { using namespace NAMESPACEDEF;
25#define  __END_GOLEM_HEADER
26#endif
27
28
29__BEGIN_GOLEM_HEADER
30
31// definition of numeric data types in the library
32
33// floating point type (min. 4 bytes, IEEE754 single)
34typedef float float4;
35// floating point type (min.  8 bytes, IEEE754 double)
36typedef double float8;
37// floating point type (min. 12 bytes, IEEE854 extended)
38typedef long double float12;
39
40// unsigned byte type (exactly 1 byte)
41typedef unsigned char byte;
42// unsigned integer type (min. 1 byte)
43typedef unsigned char uint1;
44// signed integer type (min. 1 byte)
45typedef signed char int1;
46
47// unsigned integer type (min. 2 bytes)
48typedef unsigned short int uint2;
49// signed integer type (min. 2 bytes)
50typedef signed short int int2;
51
52// unsigned integer type (min. 4 bytes)
53typedef unsigned int uint4;
54// signed integer type (min. 4 bytes)
55typedef signed int int4;
56
57// signed integer type (min. 8 bytes)
58// -- see file int8.h
59
60#ifdef _MSC_VER
61// disable some Microsoft Visual Compiler warnings if necessary
62#pragma warning( disable:4305 )
63#pragma warning( disable:4786 )
64#pragma warning( disable:4800 )
65#pragma warning( disable:4244 )
66#ifdef min
67#undef min
68#endif
69#ifdef max
70#undef max
71#endif
72#ifdef ERROR
73#undef ERROR
74#endif
75#ifdef GetObject
76#undef GetObject
77#endif
78#endif // _MSC_VER
79 
80#ifndef _EXPORT_
81#if defined(_MSC_VER)
82#define _EXPORT_  __declspec(dllexport)
83#else
84#define _EXPORT_
85#endif
86#endif
87 
88__END_GOLEM_HEADER
89
90#endif // __CONFIGH_H__
91
Note: See TracBrowser for help on using the repository browser.