src/puller.c: Converted plain comments into doxygen comments.
[geda-pcb/pcjc2.git] / src / compat.h
blob3c1e63f09b7f305c8cf11b8594647049035220b7
1 /*!
2 * \file src/compat.h
4 * \brief .
6 * <hr>
8 * <h1><b>Copyright.</b></h1>\n
10 * PCB, interactive printed circuit board design
12 * Copyright (C) 2004 Dan McMahill
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 #ifndef PCB_COMPAT_H
30 #define PCH_COMPAT_H
32 #ifdef HAVE_CONFIG_H
33 #include "config.h"
34 #endif
36 #include <math.h>
38 #ifndef HAVE_EXPF
39 float expf (float);
40 #endif
42 #ifndef HAVE_LOGF
43 float logf (float);
44 #endif
46 #ifndef HAVE_RANDOM
47 long random (void);
48 #endif
50 #if !defined(HAVE_DLFCN_H) && defined(WIN32)
51 void * dlopen (const char *, int);
52 void dlclose (void *);
53 char * dlerror (void);
55 void * dlsym(void *, const char *);
57 #define RTLD_NOW 2
58 #define RTLD_LOCAL 0
59 #define RTLD_GLOBAL 4
61 #endif
64 #endif /* PCB_COMPAT_H */