Mercurial > hg > octave-lyh
comparison liboctave/lo-cutils.c @ 5451:ed08548b9054
[project @ 2005-09-15 19:52:50 by jwe]
author | jwe |
---|---|
date | Thu, 15 Sep 2005 19:52:50 +0000 |
parents | 4c8a2e4e0717 |
children | 89f5979e8552 |
comparison
equal
deleted
inserted
replaced
5450:6b42c78c77d3 | 5451:ed08548b9054 |
---|---|
94 octave_gethostname (char *name, int namelen) | 94 octave_gethostname (char *name, int namelen) |
95 { | 95 { |
96 return gethostname (name, namelen); | 96 return gethostname (name, namelen); |
97 } | 97 } |
98 | 98 |
99 #ifdef HAVE_LOADLIBRARY_API | |
100 #include <windows.h> | |
101 | |
102 /* Need this since in C++ can't cast from int(*)() to void* */ | |
103 void * octave_w32_library_search (HINSTANCE handle, const char * name) | |
104 { | |
105 return (GetProcAddress (handle, name)); | |
106 } | |
107 #endif | |
108 | |
99 /* | 109 /* |
100 ;;; Local Variables: *** | 110 ;;; Local Variables: *** |
101 ;;; mode: C++ *** | 111 ;;; mode: C++ *** |
102 ;;; End: *** | 112 ;;; End: *** |
103 */ | 113 */ |