Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qpeglobal.h

Go to the documentation of this file.
00001 /*
00002                              This file is part of the OPIE Project
00003                              Copyright (c)  2002,2003,2004 Holger Hans Peter Freyther <freyther@handhelds.org>
00004                              Copyright (c)  2002,2003,2004 Stefan Eilers <eilers@handhelds.org>
00005 
00006                =.
00007              .=l.
00008            .>+-=
00009  _;:,     .>    :=|.         This library is free software; you can 
00010 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00011 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00012 .="- .-=="i,     .._         License as published by the Free Software
00013  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00014      ._= =}       :          or (at your option) any later version.
00015     .%`+i>       _;_.
00016     .i_,=:_.      -<s.       This library is distributed in the hope that
00017      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00018     : ..    .:,     . . .    without even the implied warranty of
00019     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00020   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00021 ..}^=.=       =       ;      Library General Public License for more
00022 ++=   -.     .`     .:       details.
00023  :     =  ...= . :.=-
00024  -.   .:....=;==+<;          You should have received a copy of the GNU
00025   -_. . .   )=.  =           Library General Public License along with
00026     --        :-=`           this library; see the file COPYING.LIB.
00027                              If not, write to the Free Software Foundation,
00028                              Inc., 59 Temple Place - Suite 330,
00029                              Boston, MA 02111-1307, USA.
00030 
00031 */
00032 
00033 #ifndef QPE_GLOBAL_DEFINES_H
00034 #define QPE_GLOBAL_DEFINES_H
00035 
00036 #include <qglobal.h>
00037 
00043 /*
00044  * commons
00045  */
00046 #define QPE_DEPRECATED
00047 
00048 
00049 #if defined(Q_OS_MACX)
00050 #define QPE_WEAK_SYMBOL __attribute__((weak_import))
00051 #define QPE_SYMBOL_USED
00052 #define QPE_SYMBOL_UNUSED
00053 #define QPE_EXPORT_SYMBOL
00054 
00055 #elif defined(_OS_UNIX_)
00056 #define QPE_WEAK_SYMBOL  __attribute__((weak))
00057 #define QPE_SYMBOL_USED __attribute__((used))
00058 #define QPE_SYMBOL_UNUSED __attribute__((unused))
00059 #define QPE_EXPORT_SYMBOL
00060 
00061 
00062 /*
00063  * mark method as deprecated
00064  */
00065 #if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)
00066   /* gcc >= 3.2 */
00067 #undef  QPE_DEPRECATED
00068 #define QPE_DEPRECATED __attribute__((deprecated))
00069 #endif
00070 
00071 /*
00072  * Defined if Compiler supports attributes
00073  */
00074 #ifdef GCC_SUPPORTS_VISIBILITY
00075 #undef QPE_EXPORT_SYMBOL
00076 #define QPE_EXPORT_SYMBOL __attribute__((visibility("default")))
00077 #endif
00078 
00079 
00080 
00081 #else // defined(Q_OS_WIN32)
00082 #define QPE_WEAK_SYMBOL
00083 #define QPE_SYMBOL_USED
00084 #define QPE_SYMBOL_UNUSED
00085 #define QPE_EXPORT_SYMBOL
00086 #endif
00087 
00088 
00089 #define QTOPIA_MERGED_METHOD(method, version) method QPE_WEAK_SYMBOL;
00090 #define NOT_IN_SHARP(method) method QPE_WEAK_SYMBOL;
00091 #define NOT_IN_QPE(method) method QPE_WEAK_SYMBOL;
00092 
00093 #endif

Generated on Sat Nov 5 16:16:39 2005 for OPIE by  doxygen 1.4.2