# gwenhywfarapi.h

Go to the documentation of this file.

    00001 /***************************************************************************
    00002  $RCSfile: gwenhywfarapi.h,v $
    00003                              -------------------
    00004     cvs         : $Id: gwenhywfarapi.h,v 1.7 2004/12/05 00:57:11 aquamaniac Exp $
    00005     begin       : Wed Sep 02 2002
    00006     copyright   : (C) 2002 by Martin Preuss
    00007     email       : martin@libchipcard.de
    00008
    00009  ***************************************************************************
    00010  *                                                                         *
    00011  *   This library is free software; you can redistribute it and/or         *
    00012  *   modify it under the terms of the GNU Lesser General Public            *
    00013  *   License as published by the Free Software Foundation; either          *
    00014  *   version 2.1 of the License, or (at your option) any later version.    *
    00015  *                                                                         *
    00016  *   This library is distributed in the hope that it will be useful,       *
    00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
    00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
    00019  *   Lesser General Public License for more details.                       *
    00020  *                                                                         *
    00021  *   You should have received a copy of the GNU Lesser General Public      *
    00022  *   License along with this library; if not, write to the Free Software   *
    00023  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
    00024  *   MA  02111-1307  USA                                                   *
    00025  *                                                                         *
    00026  ***************************************************************************/
    00027
    00028 #ifndef GWENHYWFARAPI_H
    00029
    00030 #ifdef __declspec
    00031 # if BUILDING_GWEN_DLL
    00032 #  define GWENHYWFAR_API __declspec (dllexport)
    00033 # else /* Not BUILDING_GWENHYWFAR_DLL */
    00034 #  define GWENHYWFAR_API __declspec (dllimport)
    00035 # endif /* Not BUILDING_GWENHYWFAR_DLL */
    00036 #else
    00037 # define GWENHYWFAR_API
    00038 #endif
    00039
    00040 /* Convenience macros to test the versions of glibc and gcc. Taken
    00041    from <features.h> which does not contain this on MinGW systems.  */
    00042 #ifndef __GNUC_PREREQ
    00043 # if defined __GNUC__ && defined __GNUC_MINOR__
    00044 #  define __GNUC_PREREQ(maj, min) \
    00045         ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
    00046 # else
    00047 #  define __GNUC_PREREQ(maj, min) 0
    00048 # endif
    00049 #endif /* __GNUC_PREREQ */
    00050
    00051
    00052 /* Taken from <sys/cdefs.h> which does not contain this on MinGW
    00053    systems.  */
    00054 #ifndef __STRING
    00055 # define __STRING(x)     #x
    00056 #endif /* __STRING */
    00057
    00058
    00059 /* This is needed for PalmOS, because it define some functions needed */
    00060 #include <string.h>
    00061 #include <gwenhywfar/system.h>
    00062
    00063
    00064 #ifdef __GNUC__
    00065 # define DEPRECATED __attribute__((deprecated))
    00066 #else
    00067 # define DEPRECATED
    00068 #endif /* __GNUC__ */
    00069
    00070
    00071 #endif
    00072
    00073