regfi
|
00001 /* 00002 * Copyright (C) 2010-2011 Timothy D. Morgan 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; version 3 of the License. 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 * GNU General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program; if not, write to the Free Software 00015 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00016 * 00017 * $Id: regfi.h 252 2011-05-08 17:33:49Z tim $ 00018 */ 00019 00020 #ifndef _COMPAT_H 00021 #define _COMPAT_H 00022 00023 /* GCC-specific macro for library exports */ 00024 #ifdef _EXPORT 00025 #undef _EXPORT 00026 #endif 00027 #ifdef REGFI_WIN32 00028 #define _EXPORT() __declspec(dllexport) 00029 #else 00030 #define _EXPORT() __attribute__((visibility("default"))) 00031 #endif 00032 00033 #ifndef EOVERFLOW 00034 # define EOVERFLOW E2BIG 00035 #endif 00036 00037 #endif /*_COMPAT_H*/