gwenhywfarapi.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id$
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 #define GWENHYWFARAPI_H
00030 
00031 #include <gwenhywfar/types.h>
00032 
00033 #ifdef GWENHYWFAR_IS_SUBPROJECT
00034 # define GWENHYWFAR_API
00035 # define GWENHYWFAR_EXPORT
00036 # define GWENHYWFAR_NOEXPORT
00037 #else
00038 # ifdef BUILDING_GWENHYWFAR
00039    /* building Gwenhywfar */
00040 #  if GWENHYWFAR_SYS_IS_WINDOWS
00041      /* for windows */
00042 #    ifdef __declspec
00043 #      define GWENHYWFAR_API __declspec (dllexport)
00044 #    else /* if __declspec */
00045 #      define GWENHYWFAR_API
00046 #    endif /* if NOT __declspec */
00047 #  else
00048      /* for non-win32 */
00049 #    ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
00050 #      define GWENHYWFAR_API __attribute__((visibility("default")))
00051 #    else
00052 #      define GWENHYWFAR_API
00053 #    endif
00054 #  endif
00055 # else
00056    /* not building Gwenhywfar */
00057 #  if GWENHYWFAR_SYS_IS_WINDOWS
00058      /* for windows */
00059 #    ifdef __declspec
00060 #      define GWENHYWFAR_API __declspec (dllimport)
00061 #    else /* if __declspec */
00062 #      define GWENHYWFAR_API
00063 #    endif /* if NOT __declspec */
00064 #  else
00065      /* for non-win32 */
00066 #    define GWENHYWFAR_API
00067 #  endif
00068 # endif
00069 
00070 # ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
00071 #  define GWENHYWFAR_EXPORT __attribute__((visibility("default")))
00072 #  define GWENHYWFAR_NOEXPORT __attribute__((visibility("hidden")))
00073 # else
00074 #  define GWENHYWFAR_EXPORT
00075 #  define GWENHYWFAR_NOEXPORT
00076 # endif
00077 
00078 #endif
00079 
00080 #if GWENHYWFAR_SYS_IS_WINDOWS
00081 # define GWENHYWFAR_CB __stdcall
00082 #else
00083 # define GWENHYWFAR_CB
00084 #endif
00085 
00086 #if GWENHYWFAR_SYS_IS_WINDOWS
00087 # define GWEN_DIR_SEPARATOR           '\\'
00088 # define GWEN_DIR_SEPARATOR_S         "\\"
00089 # define GWEN_SEARCHPATH_SEPARATOR    ';'
00090 # define GWEN_SEARCHPATH_SEPARATOR_S  ";"
00091 #else
00092 
00094 # define GWEN_DIR_SEPARATOR           '/'
00095 
00097 # define GWEN_DIR_SEPARATOR_S         "/"
00098 
00100 # define GWEN_SEARCHPATH_SEPARATOR    ':'
00101 
00103 # define GWEN_SEARCHPATH_SEPARATOR_S  ":"
00104 #endif
00105 
00106 
00107 /* Convenience macros to test the versions of glibc and gcc. Taken
00108    from <features.h> which does not contain this on MinGW systems.  */
00109 #ifndef __GNUC_PREREQ
00110 # if defined __GNUC__ && defined __GNUC_MINOR__
00111 #  define __GNUC_PREREQ(maj, min) \
00112         ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
00113 # else
00114 #  define __GNUC_PREREQ(maj, min) 0
00115 # endif
00116 #endif /* __GNUC_PREREQ */
00117 
00118 
00119 /* Taken from <sys/cdefs.h> which does not contain this on MinGW
00120    systems.  */
00121 #ifndef __STRING
00122 # define __STRING(x)     #x
00123 #endif /* __STRING */
00124 
00125 
00126 /* This is needed for PalmOS, because it define some functions needed */
00127 #include <string.h>
00128 #include <gwenhywfar/system.h>
00129 
00130 
00131 #if __GNUC_PREREQ(3, 0)
00132 /* Only available in gcc >= 3.0.x */
00133 # define DEPRECATED __attribute__((deprecated))
00134 #else
00135 # define DEPRECATED
00136 #endif /* __GNUC__ */
00137 
00138 
00139 #define GWEN_TIMEOUT_NONE    (0)
00140 #define GWEN_TIMEOUT_FOREVER (-1)
00141 
00142 
00143 #endif
00144 
00145 

Generated on Wed Sep 3 15:21:58 2008 for gwenhywfar by  doxygen 1.5.6