00001 /*------------------------------------------------------------------------- 00002 * C-Pluff, a plug-in framework for C 00003 * Copyright 2007 Johannes Lehtinen 00004 * 00005 * Permission is hereby granted, free of charge, to any person obtaining a 00006 * copy of this software and associated documentation files (the "Software"), 00007 * to deal in the Software without restriction, including without limitation 00008 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00009 * and/or sell copies of the Software, and to permit persons to whom the 00010 * Software is furnished to do so, subject to the following conditions: 00011 * 00012 * The above copyright notice and this permission notice shall be included 00013 * in all copies or substantial portions of the Software. 00014 * 00015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00016 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00017 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00018 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 00019 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 00020 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 00021 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00022 *-----------------------------------------------------------------------*/ 00023 00030 #ifndef CPLUFFDEF_H_ 00031 #define CPLUFFDEF_H_ 00032 00033 00034 /* ------------------------------------------------------------------------ 00035 * Version information 00036 * ----------------------------------------------------------------------*/ 00037 00047 00053 #define CP_VERSION "0.1.3" 00054 00059 #define CP_VERSION_MAJOR 0 00060 00065 #define CP_VERSION_MINOR 1 00066 00070 /* ------------------------------------------------------------------------ 00071 * Symbol visibility 00072 * ----------------------------------------------------------------------*/ 00073 00102 00137 #if defined(_WIN32) 00138 # define CP_EXPORT __declspec(dllexport) 00139 # define CP_IMPORT extern __declspec(dllimport) 00140 # define CP_HIDDEN 00141 #elif defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) 00142 # define CP_EXPORT 00143 # define CP_IMPORT extern 00144 # define CP_HIDDEN __attribute__ ((visibility ("hidden"))) 00145 #else 00146 # define CP_EXPORT 00147 # define CP_IMPORT extern 00148 # define CP_HIDDEN 00149 #endif 00150 00154 /* ------------------------------------------------------------------------ 00155 * GCC attributes 00156 * ----------------------------------------------------------------------*/ 00157 00168 00187 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) 00188 #define CP_GCC_PURE __attribute__((pure)) 00189 #else 00190 #define CP_GCC_PURE 00191 #endif 00192 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) 00193 #define CP_GCC_NONNULL(...) __attribute__((nonnull (__VA_ARGS__))) 00194 #else 00195 #define CP_GCC_NONNULL(...) 00196 #endif 00197 00200 #endif /*CPLUFFDEF_H_*/
Generated on Fri Apr 6 15:40:55 2007 for C-Pluff C API by 1.5.1