[2582] | 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 |
|
---|
[2610] | 16 |
|
---|
[2608] | 17 | #if defined(_MSC_VER)
|
---|
| 18 | // use perftimer only on msvc
|
---|
| 19 | // define __SSE__ macro as it is not defined under MSVC
|
---|
| 20 | #define __SSE__
|
---|
| 21 | // If we support the use of SSE instructions for ray shooting
|
---|
[2610] | 22 | //#define _USE_HAVRAN_SSE
|
---|
[2608] | 23 | #endif
|
---|
| 24 |
|
---|
[2582] | 25 | #ifndef USE_GOLEM_NAMESPACE
|
---|
| 26 | // without namespaces
|
---|
| 27 | #define __BEGIN_GOLEM_HEADER
|
---|
| 28 | #define __END_GOLEM_HEADER
|
---|
| 29 | #else
|
---|
| 30 | // with namespace
|
---|
| 31 | #define NAMESPACEDEF GOLEMLIB
|
---|
| 32 | // use of namespace commands inside the library sources
|
---|
| 33 | #define __BEGIN_GOLEM_HEADER namespace NAMESPACEDEF { using namespace NAMESPACEDEF;
|
---|
| 34 | #define __END_GOLEM_HEADER
|
---|
| 35 | #endif
|
---|
| 36 |
|
---|
| 37 |
|
---|
| 38 | __BEGIN_GOLEM_HEADER
|
---|
| 39 |
|
---|
| 40 | // definition of numeric data types in the library
|
---|
| 41 |
|
---|
| 42 | // floating point type (min. 4 bytes, IEEE754 single)
|
---|
| 43 | typedef float float4;
|
---|
| 44 | // floating point type (min. 8 bytes, IEEE754 double)
|
---|
| 45 | typedef double float8;
|
---|
| 46 | // floating point type (min. 12 bytes, IEEE854 extended)
|
---|
| 47 | typedef long double float12;
|
---|
| 48 |
|
---|
| 49 | // unsigned byte type (exactly 1 byte)
|
---|
| 50 | typedef unsigned char byte;
|
---|
| 51 | // unsigned integer type (min. 1 byte)
|
---|
| 52 | typedef unsigned char uint1;
|
---|
| 53 | // signed integer type (min. 1 byte)
|
---|
| 54 | typedef signed char int1;
|
---|
| 55 |
|
---|
| 56 | // unsigned integer type (min. 2 bytes)
|
---|
| 57 | typedef unsigned short int uint2;
|
---|
| 58 | // signed integer type (min. 2 bytes)
|
---|
| 59 | typedef signed short int int2;
|
---|
| 60 |
|
---|
| 61 | // unsigned integer type (min. 4 bytes)
|
---|
| 62 | typedef unsigned int uint4;
|
---|
| 63 | // signed integer type (min. 4 bytes)
|
---|
| 64 | typedef signed int int4;
|
---|
| 65 |
|
---|
| 66 | // signed integer type (min. 8 bytes)
|
---|
| 67 | // -- see file int8.h
|
---|
| 68 |
|
---|
| 69 | #ifdef _MSC_VER
|
---|
| 70 | // disable some Microsoft Visual Compiler warnings if necessary
|
---|
| 71 | #pragma warning( disable:4305 )
|
---|
| 72 | #pragma warning( disable:4786 )
|
---|
| 73 | #pragma warning( disable:4800 )
|
---|
| 74 | #pragma warning( disable:4244 )
|
---|
| 75 | #ifdef min
|
---|
| 76 | #undef min
|
---|
| 77 | #endif
|
---|
| 78 | #ifdef max
|
---|
| 79 | #undef max
|
---|
| 80 | #endif
|
---|
| 81 | #ifdef ERROR
|
---|
| 82 | #undef ERROR
|
---|
| 83 | #endif
|
---|
| 84 | #ifdef GetObject
|
---|
| 85 | #undef GetObject
|
---|
| 86 | #endif
|
---|
| 87 | #endif // _MSC_VER
|
---|
| 88 |
|
---|
| 89 | #ifndef _EXPORT_
|
---|
| 90 | #if defined(_MSC_VER)
|
---|
| 91 | #define _EXPORT_ __declspec(dllexport)
|
---|
| 92 | #else
|
---|
| 93 | #define _EXPORT_
|
---|
| 94 | #endif
|
---|
| 95 | #endif
|
---|
| 96 |
|
---|
| 97 | __END_GOLEM_HEADER
|
---|
| 98 |
|
---|
| 99 | #endif // __CONFIGH_H__
|
---|
| 100 |
|
---|