From 3889f37dc790a24355e0eb461d8a51b309dd6245 Mon Sep 17 00:00:00 2001 From: Takumi ASAKI Date: Fri, 9 Sep 2011 17:34:42 +0200 Subject: Modify mkspecs/unsupported/macx-clang/qplatformdefs.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now mkspecs/unsupported/macx-clang/qplatformdefs.h includes mkspecs/common/mac/qplatformdefs.h. This patch fixes that Qt built with clang failes to load cocoa platform plugin without QT_QPA_PLATFORM environment variable. Change-Id: Id48268eaf7ba24403f91497539ef0dab6f22a9dc Reviewed-on: http://codereview.qt-project.org/4564 Reviewed-by: Qt Sanity Bot Reviewed-by: Morten Johan Sørvig --- mkspecs/unsupported/macx-clang/qplatformdefs.h | 56 +------------------------- 1 file changed, 1 insertion(+), 55 deletions(-) diff --git a/mkspecs/unsupported/macx-clang/qplatformdefs.h b/mkspecs/unsupported/macx-clang/qplatformdefs.h index 154d9c8a4d..db69115967 100644 --- a/mkspecs/unsupported/macx-clang/qplatformdefs.h +++ b/mkspecs/unsupported/macx-clang/qplatformdefs.h @@ -39,59 +39,5 @@ ** ****************************************************************************/ -#ifndef QPLATFORMDEFS_H -#define QPLATFORMDEFS_H +#include "../../common/mac/qplatformdefs.h" -// Get Qt defines/settings - -#include "qglobal.h" - -// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs - -#include - - -// We are hot - unistd.h should have turned on the specific APIs we requested - - -#include -#include -#include -#include -#include -#include -#define QT_NO_LIBRARY_UNLOAD - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#ifndef QT_NO_IPV6IFNAME -#include -#endif - -#include "../../common/posix/qplatformdefs.h" - -#undef QT_OPEN_LARGEFILE -#undef QT_SOCKLEN_T -#undef QT_SIGNAL_IGNORE - -#define QT_OPEN_LARGEFILE 0 - -#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4) -#define QT_SOCKLEN_T socklen_t -#else -#define QT_SOCKLEN_T int -#endif - -#define QT_SIGNAL_IGNORE (void (*)(int))1 - -#define QT_SNPRINTF ::snprintf -#define QT_VSNPRINTF ::vsnprintf - -#endif // QPLATFORMDEFS_H -- cgit v1.2.3