Introduce POLYGONHOLE_MODE for creating holes in polygons
[geda-pcb/gde.git] / src / compat.h
blob7f0b0802ea24791b43bfb9d86f3460655c2d3c6c
1 /* $Id$ */
3 /*
4 * COPYRIGHT
6 * PCB, interactive printed circuit board design
7 * Copyright (C) 2004 Dan McMahill
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 #ifndef __COMPAT_H__
26 #define __COMPAT_H__
28 #ifdef HAVE_CONFIG_H
29 #include "config.h"
30 #endif
32 #include <math.h>
34 #ifndef HAVE_EXPF
35 float expf (float);
36 #endif
38 #ifndef HAVE_LOGF
39 float logf (float);
40 #endif
42 #ifndef HAVE_RANDOM
43 long random (void);
44 #endif
46 #if !defined(HAVE_DLFCN_H) && defined(WIN32)
47 void * dlopen (const char *, int);
48 void dlclose (void *);
49 char * dlerror (void);
51 void * dlsym(void *, const char *);
53 #define RTLD_NOW 2
54 #define RTLD_LOCAL 0
55 #define RTLD_GLOBAL 4
57 #endif
60 #endif /* __COMPAT_H__ */