GenericContainer
GenericContainer a tool for C++ programming
Loading...
Searching...
No Matches
GenericContainerConfig.hh
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*\
2 | |
3 | Copyright (C) 2013 |
4 | |
5 | , __ , __ |
6 | /|/ \ /|/ \ |
7 | | __/ _ ,_ | __/ _ ,_ |
8 | | \|/ / | | | | \|/ / | | | |
9 | |(__/|__/ |_/ \_/|/|(__/|__/ |_/ \_/|/ |
10 | /| /| |
11 | \| \| |
12 | |
13 | Enrico Bertolazzi |
14 | Dipartimento di Ingegneria Industriale |
15 | Università degli Studi di Trento |
16 | email: enrico.bertolazzi@unitn.it |
17 | |
18\*--------------------------------------------------------------------------*/
19
20//
21// file: GenericContainerConfig.hh
22//
23
24#pragma once
25
26#ifndef GENERIC_CONTAINER_CONFIG_HH
27#define GENERIC_CONTAINER_CONFIG_HH
28
29// select computer architecture
30#if defined(__APPLE__) && defined(__MACH__)
31 // osx architecture
32 #define GENERIC_CONTAINER_ON_OSX 1
33#elif defined(__unix__)
34 // linux architecture
35 #define GENERIC_CONTAINER_ON_LINUX 1
36#elif defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(WIN64)
37 // windows architecture
38 #define GENERIC_CONTAINER_ON_WINDOWS
39#else
40 #warning "unsupported OS!"
41#endif
42
43// check if compiler is C++11
44#if (defined(_MSC_VER) && _MSC_VER >= 1800) || \
45 (defined(__cplusplus) && __cplusplus > 199711L)
46#else
47 #error "Lapack Wrapper must be compiled using C++ >= C++11"
48#endif
49
50
51// check if compiler is C++11
52#if (defined(_MSC_VER) && _MSC_VER >= 1800) || \
53 (defined(__cplusplus) && __cplusplus >= 201103L)
54#else
55 #error "must use a compiler >= c++11"
56#endif
57
58// Standard types
59#ifdef GENERIC_CONTAINER_ON_WINDOWS
60 #ifdef GENERIC_CONTAINER_USE_WINDOWS_TYPES
61 typedef __int8 int8_t;
62 typedef __int16 int16_t;
63 typedef __int32 int32_t;
64 typedef __int64 int64_t;
65 typedef unsigned __int8 uint8_t;
66 typedef unsigned __int16 uint16_t;
67 typedef unsigned __int32 uint32_t;
68 typedef unsigned __int64 uint64_t;
69 #else
70 #include <cstdint>
71 #endif
72#else
73 #include <cstdint>
74#endif
75
76#endif
77
78//
79// eof: GenericContainerConfig.hh
80//