24 #ifndef PXR_BASE_ARCH_LIBRARY_H
25 #define PXR_BASE_ARCH_LIBRARY_H
32 #if defined(ARCH_OS_WINDOWS)
33 # define ARCH_LIBRARY_LAZY 0
34 # define ARCH_LIBRARY_NOW 0
35 # define ARCH_LIBRARY_LOCAL 0
36 # define ARCH_LIBRARY_GLOBAL 0
37 # define ARCH_LIBRARY_SUFFIX ".dll"
38 # define ARCH_STATIC_LIBRARY_SUFFIX ".lib"
41 # define ARCH_LIBRARY_LAZY RTLD_LAZY
42 # define ARCH_LIBRARY_NOW RTLD_NOW
43 # define ARCH_LIBRARY_LOCAL RTLD_LOCAL
44 # define ARCH_LIBRARY_GLOBAL RTLD_GLOBAL
45 # if defined(ARCH_OS_DARWIN)
46 # define ARCH_LIBRARY_SUFFIX ".dylib"
48 # define ARCH_LIBRARY_SUFFIX ".so"
50 # define ARCH_STATIC_LIBRARY_SUFFIX ".a"
57 #if defined(ARCH_OS_DARWIN)
58 # define ARCH_PLUGIN_SUFFIX ".so"
60 # define ARCH_PLUGIN_SUFFIX ARCH_LIBRARY_SUFFIX
99 #endif // PXR_BASE_ARCH_LIBRARY_H
GT_API const UT_StringHolder filename
GLsizei const GLchar *const * string
ARCH_API int ArchLibraryClose(void *handle)
GLuint const GLchar * name
ARCH_API void * ArchLibraryGetSymbolAddress(void *handle, const char *name)
PXR_NAMESPACE_OPEN_SCOPE ARCH_API void * ArchLibraryOpen(const std::string &filename, int flag)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
ARCH_API std::string ArchLibraryError()