<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dlfcn-win32/src, branch fix49</title>
<subtitle>A mirror of https://github.com/dlfcn-win32/dlfcn-win32.git
</subtitle>
<id>https://git.lua4.win/dlfcn-win32/atom?h=fix49</id>
<link rel='self' href='https://git.lua4.win/dlfcn-win32/atom?h=fix49'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/'/>
<updated>2023-12-23T10:28:18+00:00</updated>
<entry>
<title>Add support to consume library via CMake's FetchContent</title>
<updated>2023-12-23T10:28:18+00:00</updated>
<author>
<name>Silvio Traversaro</name>
<email>silvio@traversaro.it</email>
</author>
<published>2023-12-23T10:28:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=68dbd5e5f589f6f648e917851e901c538c8d314c'/>
<id>urn:sha1:68dbd5e5f589f6f648e917851e901c538c8d314c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add missing check that section index in get_image_section() is valid</title>
<updated>2023-07-03T16:34:23+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2023-07-03T16:34:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=fc7c011d1aa182de815ac31906ebc2aa36803bb7'/>
<id>urn:sha1:fc7c011d1aa182de815ac31906ebc2aa36803bb7</id>
<content type='text'>
Number is stored in NumberOfRvaAndSizes and it may be less than IMAGE_NUMBEROF_DIRECTORY_ENTRIES.
</content>
</entry>
<entry>
<title>Fix compilation with the first NT SDK</title>
<updated>2023-05-21T12:26:47+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2023-05-21T12:26:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=519400bf75ec7846e50a70f620d6dd4d570b258d'/>
<id>urn:sha1:519400bf75ec7846e50a70f620d6dd4d570b258d</id>
<content type='text'>
First NT SDK available in the first 32-bit MSVC NT compiler does not
provide some defines. Add them for compatibility.
</content>
</entry>
<entry>
<title>Fix compilation with old MSVC compiler</title>
<updated>2023-05-21T12:23:11+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2023-05-21T12:23:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=236d0f5e3db04e52ffd865de98ad80c6766707d3'/>
<id>urn:sha1:236d0f5e3db04e52ffd865de98ad80c6766707d3</id>
<content type='text'>
Old pre-4.0 MSVC does not support _ReturnAddress() intrinsic. Provide for
it simple implementation via inline assembly.
</content>
</entry>
<entry>
<title>Fix compilation with older SDK</title>
<updated>2023-05-21T10:11:20+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2023-05-21T10:11:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=1beb65cdfc4ba10f8d57091fd1a4acd95d39784c'/>
<id>urn:sha1:1beb65cdfc4ba10f8d57091fd1a4acd95d39784c</id>
<content type='text'>
Do not use SIZE_T which is not defined in older SDK. There is only size_t
type, so use it instead.

Do not use IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR which is not defined in
older SDK. Use IMAGE_NUMBEROF_DIRECTORY_ENTRIES macro for checking if
directory index is valid. In all SDKs is DataDirectory[] array size defined
from IMAGE_NUMBEROF_DIRECTORY_ENTRIES macro.

Cast members in IMAGE_EXPORT_DIRECTORY and IMAGE_DIRECTORY_ENTRY_IMPORT to
DWORD as in older SDK they are defined as PDWORD and compiler throws error
'cannot add two pointers'.
</content>
</entry>
<entry>
<title>Add Windows ARM64 support</title>
<updated>2022-12-27T14:10:21+00:00</updated>
<author>
<name>GH Cao</name>
<email>driver1998.ms@outlook.com</email>
</author>
<published>2022-12-08T13:37:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=d78c6266893b44d3bd9662a4cf387d79fdb7153f'/>
<id>urn:sha1:d78c6266893b44d3bd9662a4cf387d79fdb7153f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix CMake include directive when using wrappers like meson.</title>
<updated>2022-12-01T19:05:37+00:00</updated>
<author>
<name>Angelo Haller</name>
<email>angelo@szanni.org</email>
</author>
<published>2022-12-01T19:05:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=f5cf3313f6e6aeed97e1fcbc4198d26abd209dbb'/>
<id>urn:sha1:f5cf3313f6e6aeed97e1fcbc4198d26abd209dbb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace magic numbers by sdk macros in get_image_section()</title>
<updated>2022-03-11T21:50:30+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2022-03-11T21:50:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=e34fb598ac374b5764ac6cd0f0b7ecdd6df792b0'/>
<id>urn:sha1:e34fb598ac374b5764ac6cd0f0b7ecdd6df792b0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Prefer usage of thread-safe function SetThreadErrorMode() instead of process-global function SetErrorMode()</title>
<updated>2021-12-21T00:09:09+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-12-21T00:09:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=318030d5419b1064941700a1c3c21d7f9bd30149'/>
<id>urn:sha1:318030d5419b1064941700a1c3c21d7f9bd30149</id>
<content type='text'>
Use GetProcAddress() wrapper as SetThreadErrorMode() is not available on
older Windows versions.
</content>
</entry>
<entry>
<title>Try to avoid compile warning: cast between incompatible function types from ‘FARPROC’</title>
<updated>2021-12-21T00:07:19+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-12-21T00:07:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=fe1e475144c895341ffecd8af14b7b1f4d8f4c38'/>
<id>urn:sha1:fe1e475144c895341ffecd8af14b7b1f4d8f4c38</id>
<content type='text'>
warning: cast between incompatible function types from ‘FARPROC’ {aka ‘long long int (*)()’} to ‘BOOL (*)(DWORD,  const CHAR *, struct HINSTANCE__ **)’ {aka ‘int (*)(long unsigned int,  const char *, struct HINSTANCE__ **)’} [-Wcast-function-type]
</content>
</entry>
</feed>
