Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
13d6bcce
Commit
13d6bcce
authored
19 years ago
by
Martin Stjernholm
Browse files
Options
Downloads
Patches
Plain Diff
Load using LoadLibrary for --enable-dll.
Rev: src/dynamic_load.c:1.89
parent
e170f135
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dynamic_load.c
+4
-13
4 additions, 13 deletions
src/dynamic_load.c
with
4 additions
and
13 deletions
src/dynamic_load.c
+
4
−
13
View file @
13d6bcce
...
...
@@ -2,7 +2,7 @@
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
|| $Id: dynamic_load.c,v 1.8
8
200
5/11/12 20:21:13 nilsson
Exp $
|| $Id: dynamic_load.c,v 1.8
9
200
6/07/05 19:06:32 mast
Exp $
*/
#ifdef TESTING
...
...
@@ -50,14 +50,14 @@
#define EMULATE_DLOPEN
#else
#if
0
#if
def USE_DLL
#if defined(HAVE_LOADLIBRARY) && defined(HAVE_FREELIBRARY) && \
defined(HAVE_GETPROCADDRESS) && defined(HAVE_WINBASE_H)
#define USE_LOADLIBRARY
#define HAVE_SOME_DLOPEN
#define EMULATE_DLOPEN
#endif
#endif
/* 0 */
#endif
#ifdef HAVE_MACH_O_DYLD_H
/* MacOS X... */
...
...
@@ -65,7 +65,7 @@
#define HAVE_SOME_DLOPEN
#define EMULATE_DLOPEN
#else
/* !HAVE_MACH_O_DYLD_H */
#ifdef
USE_MY_WIN32_DLOPEN
#if
!
def
ined (USE_DLL) && defined (
USE_MY_WIN32_DLOPEN
)
#include
"pike_dlfcn.h"
#define HAVE_SOME_DLOPEN
#define HAVE_DLOPEN
...
...
@@ -102,15 +102,6 @@ static void *dlopen(const char *foo, int how)
tmp
=
convert_string
(
foo
,
strlen
(
foo
));
ret
=
LoadLibrary
(
tmp
);
free
((
char
*
)
tmp
);
if
(
ret
)
{
void
**
psym
=
(
void
**
)
GetProcAddress
(
ret
,
"PikeSymbol"
);
if
(
psym
)
{
extern
void
*
PikeSymbol
[];
*
psym
=
PikeSymbol
;
}
}
return
(
void
*
)
ret
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment