NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
niftk-nightly
MITK
Modules
SerialPort
qextserialport_global.h
Go to the documentation of this file.
1
/****************************************************************************
2
** Copyright (c) 2000-2003 Wayne Roth
3
** Copyright (c) 2004-2007 Stefan Sander
4
** Copyright (c) 2007 Michal Policht
5
** Copyright (c) 2008 Brandon Fosdick
6
** Copyright (c) 2009-2010 Liam Staskawicz
7
** Copyright (c) 2011 Debao Zhang
8
** All right reserved.
9
** Web: http://code.google.com/p/qextserialport/
10
**
11
** Permission is hereby granted, free of charge, to any person obtaining
12
** a copy of this software and associated documentation files (the
13
** "Software"), to deal in the Software without restriction, including
14
** without limitation the rights to use, copy, modify, merge, publish,
15
** distribute, sublicense, and/or sell copies of the Software, and to
16
** permit persons to whom the Software is furnished to do so, subject to
17
** the following conditions:
18
**
19
** The above copyright notice and this permission notice shall be
20
** included in all copies or substantial portions of the Software.
21
**
22
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25
** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26
** LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27
** OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28
** WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
**
30
****************************************************************************/
31
32
#ifndef QEXTSERIALPORT_GLOBAL_H
33
#define QEXTSERIALPORT_GLOBAL_H
34
35
#include <QtCore/QtGlobal>
36
37
#ifdef QEXTSERIALPORT_BUILD_SHARED
38
# define QEXTSERIALPORT_EXPORT Q_DECL_EXPORT
39
#elif defined(QEXTSERIALPORT_USING_SHARED)
40
# define QEXTSERIALPORT_EXPORT Q_DECL_IMPORT
41
#else
42
# define QEXTSERIALPORT_EXPORT
43
#endif
44
45
// ### for compatible with old version. should be removed in QESP 2.0
46
#ifdef _TTY_NOWARN_
47
# define QESP_NO_WARN
48
#endif
49
#ifdef _TTY_NOWARN_PORT_
50
# define QESP_NO_PORTABILITY_WARN
51
#endif
52
53
/*if all warning messages are turned off, flag portability warnings to be turned off as well*/
54
#ifdef QESP_NO_WARN
55
# define QESP_NO_PORTABILITY_WARN
56
#endif
57
58
/*macros for warning and debug messages*/
59
#ifdef QESP_NO_PORTABILITY_WARN
60
# define QESP_PORTABILITY_WARNING while(false)qWarning
61
#else
62
# define QESP_PORTABILITY_WARNING qWarning
63
#endif
/*QESP_NOWARN_PORT*/
64
65
#ifdef QESP_NO_WARN
66
# define QESP_WARNING while(false)qWarning
67
#else
68
# define QESP_WARNING qWarning
69
#endif
/*QESP_NOWARN*/
70
71
#endif // QEXTSERIALPORT_GLOBAL_H
72
Generated on Thu Aug 4 2016 06:02:51 for NifTK by
1.8.8