diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2012-02-02 14:23:32 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-03 08:52:42 +0100 |
commit | 0160f58d4ba5efd3beacaca3ce122554a90f1eb4 (patch) | |
tree | 8de39cce9c9cf395bcde1b42aa9ded5a724ab8f4 /src/corelib/arch | |
parent | a3be9bd9c4f329b1c3fe5c9c492b6279828c50d3 (diff) |
Rename qatomic_windows.h to qatomic_msvc.h
The QT_ARCH_WINDOWS(CE) define(s) aren't used to control which
header to include anymore, so just remove it. We also do not need
the empty src/corelib/arch/windows/arch.pri.
Change-Id: I5400fc852af31907e533d0278540b8cd3da391cb
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/arch')
-rw-r--r-- | src/corelib/arch/arch.pri | 8 | ||||
-rw-r--r-- | src/corelib/arch/qatomic_arch.h | 4 | ||||
-rw-r--r-- | src/corelib/arch/qatomic_msvc.h (renamed from src/corelib/arch/qatomic_windows.h) | 10 | ||||
-rw-r--r-- | src/corelib/arch/qatomic_windowsce.h | 56 | ||||
-rw-r--r-- | src/corelib/arch/windows/arch.pri | 3 |
5 files changed, 7 insertions, 74 deletions
diff --git a/src/corelib/arch/arch.pri b/src/corelib/arch/arch.pri index c40b383622..cd504b1d75 100644 --- a/src/corelib/arch/arch.pri +++ b/src/corelib/arch/arch.pri @@ -1,4 +1,4 @@ -win32:HEADERS += arch/qatomic_windows.h \ +win32:HEADERS += arch/qatomic_msvc.h \ arch/qatomic_generic.h win32-g++*:HEADERS += arch/qatomic_i386.h \ @@ -35,7 +35,7 @@ integrity:HEADERS += arch/qatomic_integrity.h arch/qatomic_cxx11.h QT_ARCH_CPP = $$QT_SOURCE_TREE/src/corelib/arch/$$QT_ARCH -DEPENDPATH += $$QT_ARCH_CPP -!isEmpty(QT_ARCH) { - include($$QT_ARCH_CPP/arch.pri, "", true) +exists($$QT_ARCH_CPP) { + DEPENDPATH += $$QT_ARCH_CPP + include($$QT_ARCH_CPP/arch.pri, "", true) } diff --git a/src/corelib/arch/qatomic_arch.h b/src/corelib/arch/qatomic_arch.h index 5e851b2c07..5c18051461 100644 --- a/src/corelib/arch/qatomic_arch.h +++ b/src/corelib/arch/qatomic_arch.h @@ -68,10 +68,6 @@ QT_BEGIN_HEADER # include "QtCore/qatomic_s390.h" #elif defined(QT_ARCH_SPARC) # include "QtCore/qatomic_sparc.h" -#elif defined(QT_ARCH_WINDOWS) -# include "QtCore/qatomic_windows.h" -#elif defined(QT_ARCH_WINDOWSCE) -# include "QtCore/qatomic_windowsce.h" #elif defined(QT_ARCH_SH) # include "QtCore/qatomic_sh.h" #elif defined(QT_ARCH_SH4A) diff --git a/src/corelib/arch/qatomic_windows.h b/src/corelib/arch/qatomic_msvc.h index caac54b0e4..eeb37dba89 100644 --- a/src/corelib/arch/qatomic_windows.h +++ b/src/corelib/arch/qatomic_msvc.h @@ -39,10 +39,8 @@ ** ****************************************************************************/ -#ifndef QATOMIC_WINDOWS_H -#define QATOMIC_WINDOWS_H - -#ifdef Q_CC_MSVC +#ifndef QATOMIC_MSVC_H +#define QATOMIC_MSVC_H #include <QtCore/qgenericatomic.h> @@ -380,6 +378,4 @@ inline T *QAtomicOps<T *>::fetchAndAddRelaxed(T *&_q_value, qptrdiff valueToAdd) QT_END_NAMESPACE QT_END_HEADER -#endif // Q_CC_MSVC - -#endif // QATOMIC_WINDOWS_H +#endif // QATOMIC_MSVC_H diff --git a/src/corelib/arch/qatomic_windowsce.h b/src/corelib/arch/qatomic_windowsce.h deleted file mode 100644 index cce155e523..0000000000 --- a/src/corelib/arch/qatomic_windowsce.h +++ /dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the QtCore module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this -** file. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef WINDOWSCE_QATOMIC_H -#define WINDOWSCE_QATOMIC_H - -#include <QtCore/qglobal.h> -QT_BEGIN_HEADER - -#if defined(QT_ARCH_WINDOWSCE) -#include "QtCore/qatomic_windows.h" -#endif - -QT_END_HEADER - -#endif // QATOMIC_ARCH_H - - diff --git a/src/corelib/arch/windows/arch.pri b/src/corelib/arch/windows/arch.pri deleted file mode 100644 index d42374b98f..0000000000 --- a/src/corelib/arch/windows/arch.pri +++ /dev/null @@ -1,3 +0,0 @@ -# -# Windows architecture -# |