OFFIS DCMTK  Version 3.6.0
config.h
1 //
2 // (C) Jan de Vaan 2007-2010, all rights reserved. See the accompanying "License.txt" for licensed use.
3 //
4 
5 
6 #ifndef CHARLS_CONFIG
7 #define CHARLS_CONFIG
8 
9 #ifdef NDEBUG
10 # ifndef ASSERT
11 # define ASSERT(t) { }
12 # endif
13 # ifndef assert
14 # define assert(t) { }
15 # endif
16 #else
17 #define INCLUDE_CASSERT
18 #include "dcmtk/ofstd/ofstdinc.h"
19 #define ASSERT(t) assert(t)
20 #endif
21 
22 #if defined(_WIN32)
23 #ifdef _MSC_VER
24 #pragma warning (disable:4512)
25 #endif
26 
27 #endif
28 
29 // Typedef used by Charls for the default integral type.
30 // charls will work correct with 64 or 32 bit.
31 typedef long LONG;
32 
33 enum constants
34 {
35  LONG_BITCOUNT = sizeof(LONG)*8
36 };
37 
38 
39 typedef unsigned char BYTE;
40 typedef unsigned short USHORT;
41 
42 #undef NEAR
43 
44 #ifndef inlinehint
45 # ifdef _MSC_VER
46 # ifdef NDEBUG
47 # define inlinehint __forceinline
48 # else
49 # define inlinehint
50 # endif
51 # elif defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
52 # define inlinehint inline
53 # else
54 # define inlinehint inline
55 # endif
56 #endif
57 
58 #if defined(i386) || defined(__i386__) || defined(_M_IX86) || defined(__amd64__) || defined(_M_X64)
59 #define ARCH_HAS_UNALIGNED_MEM_ACCESS /* TODO define this symbol for more architectures */
60 #endif
61 
62 #endif
63 


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2