1 #include <../../nrnconf.h> 4 #if defined(CYGWIN) || defined(MINGW) 6 #if !defined(__MINGW32__) 8 #define my_off64_t loff_t 10 #define my_off64_t off64_t 15 my_off64_t lseek64(
int fd, my_off64_t offset,
int whence) {
16 fprintf(stderr,
"called lseek64\n");
21 #if !defined(HAVE_DLFCN_H) || defined(__MINGW32__) 26 ret = (
void *) LoadLibrary(name);
28 DWORD dw = GetLastError();
29 fprintf(stderr,
"LoadLibrary(\"%s\") failed with error %d\n", name, dw);
34 void* dlopen_noerr(
const char *name,
int mode) {
return (
void*)LoadLibrary(name);}
36 void*
dlsym(
void *handle,
const char *name) {
37 void *ret = (
void *) GetProcAddress ((HMODULE) handle,
name);
39 fprintf(stderr,
"Could not GetProcAddress for \"%s\"\n", name);
47 static char* dler_=
"";
const char * dlerror(void)
int dlclose(void *handle)
fprintf(stderr, "Don't know the location of params at %p\, pp)
void * dlopen(const char *path, int mode)
void * dlsym(void *handle, const char *symbol)