Add #define list of flags to unset when copying into a buffer
[geda-pcb/pcjc2.git] / src / compat.h
blobff83161b13ecfce8df23734a4e868fea809a22ed
1 /*
2 * COPYRIGHT
4 * PCB, interactive printed circuit board design
5 * Copyright (C) 2004 Dan McMahill
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef PCB_COMPAT_H
24 #define PCH_COMPAT_H
26 #ifdef HAVE_CONFIG_H
27 #include "config.h"
28 #endif
30 #include <math.h>
32 #ifndef HAVE_EXPF
33 float expf (float);
34 #endif
36 #ifndef HAVE_LOGF
37 float logf (float);
38 #endif
40 #ifndef HAVE_RANDOM
41 long random (void);
42 #endif
44 #if !defined(HAVE_DLFCN_H) && defined(WIN32)
45 void * dlopen (const char *, int);
46 void dlclose (void *);
47 char * dlerror (void);
49 void * dlsym(void *, const char *);
51 #define RTLD_NOW 2
52 #define RTLD_LOCAL 0
53 #define RTLD_GLOBAL 4
55 #endif
58 #endif /* PCB_COMPAT_H */