source: trunk/include/compat.h @ 276

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

readded windows file descriptor hack
copyright notices

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