Mercurial > octave
diff liboctave/util/lo-cutils.c @ 21236:5d23ea5c733a
eliminate configuration macros from lo-cutils.h
* lo-cutils.h, lo-cutils.c (octave_w32_library_search): Delete.
Don't include windows.h
* oct-shlib.cc: (octave_w32_library_search): Delete extern decl.
(octave_w32_shlib::octave_w32_shlib): Declare msg as const char*.
(octave_w32_shlib::search): Call GetProcAddress directly.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 09 Feb 2016 13:37:25 -0500 |
parents | f7d1050b9b53 |
children | 40de9f8f23a6 |
line wrap: on
line diff
--- a/liboctave/util/lo-cutils.c Tue Feb 09 10:35:28 2016 -0800 +++ b/liboctave/util/lo-cutils.c Tue Feb 09 13:37:25 2016 -0500 @@ -62,17 +62,6 @@ return strncasecmp (s1, s2, n); } -#ifdef HAVE_LOADLIBRARY_API -# include <windows.h> - -/* Need this since in C++ can't cast from int(*)() to void* */ -OCTAVE_API void * -octave_w32_library_search (HINSTANCE handle, const char * name) -{ - return (GetProcAddress (handle, name)); -} -#endif - OCTAVE_API pid_t octave_waitpid (pid_t pid, int *status, int options) {