Sha256: 531fe28d585a3ab8309a49bfcf8bb1eda5b4f050d18a68c1719caca3dfc4c4b4

Contents?: true

Size: 656 Bytes

Versions: 1

Compression:

Stored size: 656 Bytes

Contents

/*
 * File:  udl.h
 * Copyright (C) 2005 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
 */

#ifndef _U_DL_H
#define _U_DL_H

#ifdef _WIN32

typedef HMODULE ULibrary;
#define UDL_INVALID_LIBRARY		NULL

#define uLoadLibrary(fname)				LoadLibrary(fname)
#define uFreeLibrary(lib)				FreeLibrary(lib)
#define uGetProcAddress(lib,sym)		GetProcAddress(lib,sym)

#else //UNIX

#include <dlfcn.h>

typedef void * ULibrary;
#define UDL_INVALID_LIBRARY		NULL

#define uLoadLibrary(fname)			dlopen(fname, RTLD_LAZY)
#define uFreeLibrary(lib)			dlclose(lib)
#define uGetProcAddress(lib,sym)	dlsym(lib,sym)

#endif

#endif //_U_DL_H

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sedna-0.6.0 vendor/sedna/kernel/common/u/udl.h