Skip to content

Commit

Permalink
Fix fileutils.cpp missing header / lib on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlovegrove committed Jan 20, 2023
1 parent 52d34c4 commit fe57db5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/pango_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ if (UNIX)
if (NOT APPLE)
target_link_libraries(${COMPONENT} PUBLIC rt)
endif()
elseif(WIN32 OR WIN64)
target_link_libraries(${COMPONENT} PRIVATE shlwapi.lib)
endif()


Expand Down
3 changes: 2 additions & 1 deletion components/pango_core/src/file_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
# define WIN32_LEAN_AND_MEAN
# endif
# include <Windows.h>
# include <Shlobj.h>
# include <shlobj.h>
# include <shlwapi.h>
# ifdef UNICODE
# include <codecvt>
# endif
Expand Down

0 comments on commit fe57db5

Please sign in to comment.