/*************************************************************************** $RCSfile: gwenhywfarapi.h,v $ ------------------- cvs : $Id: gwenhywfarapi.h,v 1.7 2004/12/05 00:57:11 aquamaniac Exp $ begin : Wed Sep 02 2002 copyright : (C) 2002 by Martin Preuss email : martin@libchipcard.de *************************************************************************** * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or (at your option) any later version. * * * * This library is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * * Lesser General Public License for more details. * * * * You should have received a copy of the GNU Lesser General Public * * License along with this library; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * * MA 02111-1307 USA * * * ***************************************************************************/ #ifndef GWENHYWFARAPI_H #ifdef __declspec # if BUILDING_GWEN_DLL # define GWENHYWFAR_API __declspec (dllexport) # else /* Not BUILDING_GWENHYWFAR_DLL */ # define GWENHYWFAR_API __declspec (dllimport) # endif /* Not BUILDING_GWENHYWFAR_DLL */ #else # define GWENHYWFAR_API #endif /* Convenience macros to test the versions of glibc and gcc. Taken from which does not contain this on MinGW systems. */ #ifndef __GNUC_PREREQ # if defined __GNUC__ && defined __GNUC_MINOR__ # define __GNUC_PREREQ(maj, min) \ ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) # else # define __GNUC_PREREQ(maj, min) 0 # endif #endif /* __GNUC_PREREQ */ /* Taken from which does not contain this on MinGW systems. */ #ifndef __STRING # define __STRING(x) #x #endif /* __STRING */ /* This is needed for PalmOS, because it define some functions needed */ #include #include #ifdef __GNUC__ # define DEPRECATED __attribute__((deprecated)) #else # define DEPRECATED #endif /* __GNUC__ */ #endif