Eneboo - Documentación para desarrolladores
src/qt/include/qt_mac9.h
Ir a la documentación de este archivo.
00001 /****************************************************************************
00002 ** $Id: qt/qt_mac9.h   3.3.8   edited Jan 11 14:38 $
00003 **
00004 ** Definition of ???
00005 **
00006 ** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
00007 **
00008 ** This file is part of the kernel module of the Qt GUI Toolkit.
00009 **
00010 ** This file may be distributed and/or modified under the terms of the
00011 ** GNU General Public License version 2 as published by the Free Software
00012 ** Foundation and appearing in the file LICENSE.GPL included in the
00013 ** packaging of this file.
00014 **
00015 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
00016 ** licenses for Macintosh may use this file in accordance with the Qt Commercial
00017 ** License Agreement provided with the Software.
00018 **
00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00021 **
00022 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00023 **   information about Qt Commercial License Agreements.
00024 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00025 **
00026 ** Contact info@trolltech.com if any conditions of this licensing are
00027 ** not clear to you.
00028 **
00029 **********************************************************************/
00030 
00031 #ifndef QT_MAC9_H
00032 #define QT_MAC9_H
00033 
00034 #include "qglobal.h"
00035 #ifdef Q_WS_MAC9
00036 
00037 //these don't belong here, but will be moved to an
00038 //appropriate place later
00039 //features
00040 #ifndef QT_NO_IMAGEIO_JPEG
00041 #define QT_NO_IMAGEIO_JPEG
00042 #endif
00043 #ifndef QT_NO_IMAGEIO_MNG
00044 #define QT_NO_IMAGEIO_MNG
00045 #endif
00046 #ifndef QT_NO_SQL
00047 #define QT_NO_SQL
00048 #endif
00049 #define QT_FATAL_ASSERT
00050 #define QT_NO_XINERAMA
00051 #define QT_NO_OPENGL
00052 #define QT_NO_STYLE_WINDOWSXP 
00053 
00054 //mac thingy
00055 #ifndef QMAC_ONE_PIXEL_LOCK
00056 #define QMAC_ONE_PIXEL_LOCK
00057 #endif
00058 //carbon things
00059 #define ALLOW_OLD_CARBON
00060 #define _EVENT_HANDLERS 0
00061 #define ALLOW_OLD_CREATE_FOO_CONTROL_PARAMETERS 0
00062 #define CARBON_ON_MAC_O 1
00063 #define ALLOW_OLD_BLOCKING_APIS 0
00064 
00065 //hacks to work around wchar problems
00066 #define __WCHARTDEF__
00067 //#define __NO_WIDE_CHAR 1
00068 #undef wchar_t
00069 typedef unsigned short hide_wchar_t; 
00070 #define wchar_t hide_wchar_t
00071 
00072 #include <stddef.h>
00073 #include <cstdlib> //pull in some posix stuff
00074 using std::calloc;
00075 using std::free;
00076 using std::realloc;
00077 
00078 //hacks to work around malloc(0) returning NULL
00079 static inline void *_mac9_malloc(size_t s) { return std::malloc(s ? s : 1); }
00080 #define malloc(x) _mac9_malloc(x)
00081 
00082 #endif //MAC9
00083 
00084 #endif //MAC9_H
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'