Servus  1.0.0
A small set of network oriented utilities in C++ including a zeroconf implementation.
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
types.h
1 /* Copyright (c) 2015, Human Brain Project
2  * Stefan.Eilemann@epfl.ch
3  * Juan Hernando <jhernando@fi.upm.es>
4  *
5  * This file is part of Servus <https://github.com/HBPVIS/Servus>
6  *
7  * This library is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Lesser General Public License version 3.0 as published
9  * by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #ifndef SERVUS_TYPES_H
22 #define SERVUS_TYPES_H
23 
24 #include "uint128_t.h"
25 #include "uri.h"
26 
27 #include <sys/types.h>
28 #ifndef _MSC_VER
29 # include <stdint.h>
30 #endif
31 #ifdef _WIN32
32 # include <basetsd.h>
33 # ifdef _MSC_VER
34 typedef UINT64 uint64_t;
35 typedef INT64 int64_t;
36 typedef UINT32 uint32_t;
37 typedef INT32 int32_t;
38 typedef UINT16 uint16_t;
39 typedef INT16 int16_t;
40 typedef UINT8 uint8_t;
41 typedef INT8 int8_t;
42 # ifndef HAVE_SSIZE_T
43 typedef SSIZE_T ssize_t;
44 # define HAVE_SSIZE_T
45 # endif
46 # endif // Win32, Visual C++
47 #endif // Win32
48 
49 #include <vector>
50 #include <string>
51 
52 namespace servus
53 {
54 typedef std::vector< std::string > Strings;
55 }
56 
57 #endif