]> git.ipfire.org Git - thirdparty/libtool.git/commit
Use GetErrorMode if it is available.
authorPeter Rosin <peda@lysator.liu.se>
Mon, 18 Jan 2010 08:48:23 +0000 (09:48 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Mon, 18 Jan 2010 08:48:23 +0000 (09:48 +0100)
commit16362c656aac5daf7337f2ed27aae1fe4838d03a
treebe5e9cc19c490d1a9844fab01ddc60c405123ee0
parenta75f8acf28774a6f9e9b9b7c015b51c378be1221
Use GetErrorMode if it is available.

* libltdl/loaders/loadlibrary.c (wrap_geterrormode): New
function that checks if GetErrorMode is supported by the
system and makes use of it if it is.
(fallback_geterrormode): New function that is used otherwise
that implements the old workaround.
(geterrormode): New function pointer that points at either
of the above or directly at GetErrorMode.
(vm_open): Make use of the above.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
ChangeLog
libltdl/loaders/loadlibrary.c