The R Project SVN R

Rev

Rev 24068 | Rev 32872 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24068 Rev 25264
Line 33... Line 33...
33
#endif
33
#endif
34
 
34
 
35
#include <Defn.h>
35
#include <Defn.h>
36
#include <Rdynpriv.h>
36
#include <Rdynpriv.h>
37
 
37
 
-
 
38
#ifdef __APPLE_CC__
-
 
39
/* # ifdef HAVE_DL_H */
-
 
40
#  include "dlfcn-darwin.h"
-
 
41
#  define HAVE_DYNAMIC_LOADING
-
 
42
/* # endif */
-
 
43
#else
38
/* HP-UX 11.0 has dlfcn.h, but according to libtool as of Dec 2001
44
/* HP-UX 11.0 has dlfcn.h, but according to libtool as of Dec 2001
39
   this support is broken. So we force use of shlib even when dlfcn.h
45
   this support is broken. So we force use of shlib even when dlfcn.h
40
   is available */
46
   is available */
41
#ifdef __hpux
47
# ifdef __hpux
42
# ifdef HAVE_DL_H
48
#  ifdef HAVE_DL_H
43
#  include "hpdlfcn.c"
49
#   include "hpdlfcn.c"
44
#  define HAVE_DYNAMIC_LOADING
50
#   define HAVE_DYNAMIC_LOADING
45
# endif
51
#  endif
46
#else
52
# else
47
# ifdef HAVE_DLFCN_H
53
#  ifdef HAVE_DLFCN_H
48
#  include <dlfcn.h>
54
#   include <dlfcn.h>
49
#  define HAVE_DYNAMIC_LOADING
55
#   define HAVE_DYNAMIC_LOADING
-
 
56
#  endif
50
# endif
57
# endif
-
 
58
 
51
#endif
59
#endif /* __APPLE_CC__ */
52
 
60
 
53
#ifdef HAVE_DYNAMIC_LOADING
61
#ifdef HAVE_DYNAMIC_LOADING
54
 
62
 
55
static void *loadLibrary(const char *path, int asLocal, int now);
63
static void *loadLibrary(const char *path, int asLocal, int now);
56
static void closeLibrary(void *handle);
64
static void closeLibrary(void *handle);