source: trunk/include/compat.h @ 254

Last change on this file since 254 was 254, checked in by tim, 13 years ago

added forgotten files

File size: 1.1 KB
Line 
1/*
2 * Copyright (C) 2005-2010 Timothy D. Morgan
3 * Copyright (C) 2010 Michael Cohen
4 * Copyright (C) 2005 Gerald (Jerry) Carter
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 3 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 *
19 * $Id: regfi.h 252 2011-05-08 17:33:49Z tim $
20 */
21
22#ifndef _COMPAT_H
23#define _COMPAT_H
24
25/* GCC-specific macro for library exports */
26#ifdef _EXPORT
27#undef _EXPORT
28#endif
29#ifdef REGFI_WIN32
30#define _EXPORT() __declspec(dllexport)
31#else
32#define _EXPORT() __attribute__((visibility("default")))
33#endif
34
35#ifndef EOVERFLOW
36# define EOVERFLOW E2BIG
37#endif
38
39#endif /*_COMPAT_H*/
Note: See TracBrowser for help on using the repository browser.