TPIE

2362a60
portability.h
Go to the documentation of this file.
1 // -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup"; -*-
2 // vi:set ts=4 sts=4 sw=4 noet :
3 // Copyright 2008, 2012, The TPIE development team
4 //
5 // This file is part of TPIE.
6 //
7 // TPIE is free software: you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License as published by the
9 // Free Software Foundation, either version 3 of the License, or (at your
10 // option) any later version.
11 //
12 // TPIE is distributed in the hope that it will be useful, but WITHOUT ANY
13 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 // License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public License
18 // along with TPIE. If not, see <http://www.gnu.org/licenses/>
19 
24 
25 // This header-file offers macros for independent use on Win and Unix systems.
26 #ifndef _PORTABILITY_H
27 #define _PORTABILITY_H
28 
29 #include <tpie/types.h>
30 #include <tpie/config.h>
31 #include <tpie/deprecated.h>
32 
33 typedef tpie::offset_type TPIE_DEPRECATED(TPIE_OS_OFFSET);
34 typedef tpie::size_type TPIE_DEPRECATED(TPIE_OS_SIZE_T);
35 typedef tpie::ssize_type TPIE_DEPRECATED(TPIE_OS_SSIZE_T);
36 typedef tpie::ssize_type TPIE_DEPRECATED(TPIE_OS_OUTPUT_SIZE_T);
37 
38 #if defined (_WIN32) && !defined(__MINGW32__)
39 typedef long TPIE_DEPRECATED(TPIE_OS_LONG);
40 typedef __int64 TPIE_DEPRECATED(TPIE_OS_LONGLONG);
41 typedef unsigned __int64 TPIE_DEPRECATED(TPIE_OS_ULONGLONG);
42 #else
43 typedef long TPIE_DEPRECATED(TPIE_OS_LONG);
44 typedef long long int TPIE_DEPRECATED(TPIE_OS_LONGLONG);
45 typedef unsigned long long int TPIE_DEPRECATED(TPIE_OS_ULONGLONG);
46 #endif
47 
48 #endif
49 // _portability_H //
Typesafe bitflags.
Macros for deprecating classes, methods and typedefs.