Skip to content

Commit

Permalink
[libromdata] (NE|PE)ResourceReader.hpp: Add MAKEINTRESOURCE wrappers.
Browse files Browse the repository at this point in the history
They shouldn't be needed here, since they're defined in IResourceReader,
but it doesn't seem to be working in cases where windows.h overrides
our own definitions...
  • Loading branch information
GerbilSoft committed May 27, 2024
1 parent 315d184 commit ed2999e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libromdata/disc/NEResourceReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ class NEResourceReader final : public IResourceReader
*/
LibRpFile::IRpFilePtr open(uint16_t type, int id, int lang) final;

#ifdef _WIN32
open_MAKEINTRESOURCE_wrapper(LPSTR);
open_MAKEINTRESOURCE_wrapper(LPCSTR);
open_MAKEINTRESOURCE_wrapper(LPWSTR);
open_MAKEINTRESOURCE_wrapper(LPCWSTR);
#endif /* _WIN32 */

/**
* Load a VS_VERSION_INFO resource.
* Data will be byteswapped to host-endian if necessary.
Expand Down
7 changes: 7 additions & 0 deletions src/libromdata/disc/PEResourceReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ class PEResourceReader final : public IResourceReader
*/
LibRpFile::IRpFilePtr open(uint16_t type, int id, int lang) final;

#ifdef _WIN32
open_MAKEINTRESOURCE_wrapper(LPSTR);
open_MAKEINTRESOURCE_wrapper(LPCSTR);
open_MAKEINTRESOURCE_wrapper(LPWSTR);
open_MAKEINTRESOURCE_wrapper(LPCWSTR);
#endif /* _WIN32 */

/**
* Load a VS_VERSION_INFO resource.
* Data will be byteswapped to host-endian if necessary.
Expand Down

0 comments on commit ed2999e

Please sign in to comment.