File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -42,40 +42,6 @@ hs_GLUT_getProcAddress(const char *name)
42
42
return handle ? GetProcAddress (handle , name ) : NULL ;
43
43
}
44
44
45
- /* -------------------------------------------------------------------------- */
46
- #elif defined(USE_NSADDRESSOFSYMBOL )
47
-
48
- #include <mach-o/dyld.h>
49
- #include <stdlib.h>
50
- #include <string.h>
51
-
52
- void *
53
- hs_GLUT_getProcAddress (const char * name )
54
- {
55
- NSSymbol symbol ;
56
-
57
- /* Prepend a '_' for the Unix C symbol mangling convention */
58
- char * symbolName = (char * )malloc (strlen (name ) + 2 );
59
- if (!symbolName ) {
60
- return NULL ;
61
- }
62
- symbolName [0 ] = '_' ;
63
- strcpy (symbolName + 1 , name );
64
-
65
- if (!NSIsSymbolNameDefined (symbolName )) {
66
- free (symbolName );
67
- return NULL ;
68
- }
69
-
70
- symbol = NSLookupAndBindSymbol (symbolName );
71
- free (symbolName );
72
- if (!symbol ) {
73
- return NULL ;
74
- }
75
-
76
- return NSAddressOfSymbol (symbol );
77
- }
78
-
79
45
/* -------------------------------------------------------------------------- */
80
46
#elif defined(USE_DLSYM )
81
47
You can’t perform that action at this time.
0 commit comments