diff options
Diffstat (limited to 'src/grt/grt-cdynload.h')
-rw-r--r-- | src/grt/grt-cdynload.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/grt/grt-cdynload.h b/src/grt/grt-cdynload.h index ff2551a2f..374285a8c 100644 --- a/src/grt/grt-cdynload.h +++ b/src/grt/grt-cdynload.h @@ -2,10 +2,19 @@ #ifndef __GRT_DYNLOAD__ #define __GRT_DYNLOAD__ +/* Extension of a shared library. */ +#if defined (WINNT) +#define DSO_EXT ".dll" +#elif defined (__APPLE__) +#define DSO_EXT ".dylib" +#else +#define DSO_EXT ".so" +#endif + +extern const char *dso_ext; + void * grt_dynload_open (const char *path); void * grt_dynload_symbol (void *handle, const char *symbol); const char *grt_dynload_error (void); #endif /* __GRT_DYNLOAD__ */ - - |